Author: Sanjay Patel Date: 2021-01-21T16:02:38-05:00 New Revision: 2f03528f5e7fd9df0a12091392e000c697497262
URL: https://github.com/llvm/llvm-project/commit/2f03528f5e7fd9df0a12091392e000c697497262 DIFF: https://github.com/llvm/llvm-project/commit/2f03528f5e7fd9df0a12091392e000c697497262.diff LOG: [SLP] rename reduction variable to avoid shadowing; NFC The code structure can likely be improved now that 'OperationData' is gone. Added: Modified: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp Removed: ################################################################################ diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 73260016f443..cee388e62bf2 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -6436,8 +6436,8 @@ class HorizontalReduction { // in this case. // Do not perform analysis of remaining operands of ParentStackElem.first // instruction, this whole instruction is an extra argument. - RecurKind RdxKind = getRdxKind(ParentStackElem.first); - ParentStackElem.second = getNumberOfOperands(RdxKind); + RecurKind ParentRdxKind = getRdxKind(ParentStackElem.first); + ParentStackElem.second = getNumberOfOperands(ParentRdxKind); } else { // We ran into something like: // ParentStackElem.first += ... + ExtraArg + ... _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits