[llvm] ba2690b - [SLP][NFC]Fix variables names, NFC.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 14 12:52:29 PDT 2021
Author: Alexey Bataev
Date: 2021-07-14T12:43:45-07:00
New Revision: ba2690b17b9e463b80a1d6c675e3d04fc2974083
URL: https://github.com/llvm/llvm-project/commit/ba2690b17b9e463b80a1d6c675e3d04fc2974083
DIFF: https://github.com/llvm/llvm-project/commit/ba2690b17b9e463b80a1d6c675e3d04fc2974083.diff
LOG: [SLP][NFC]Fix variables names, NFC.
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 b5ba896b09f6..17932a1dc36b 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -5614,17 +5614,17 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
// Also, gather up main and alt scalar ops to propagate IR flags to
// each vector operation.
ValueList OpScalars, AltScalars;
- unsigned e = E->Scalars.size();
- SmallVector<int, 8> Mask(e);
- for (unsigned i = 0; i < e; ++i) {
- auto *OpInst = cast<Instruction>(E->Scalars[i]);
+ unsigned Sz = E->Scalars.size();
+ SmallVector<int> Mask(Sz);
+ for (unsigned I = 0; I < Sz; ++I) {
+ auto *OpInst = cast<Instruction>(E->Scalars[I]);
assert(E->isOpcodeOrAlt(OpInst) && "Unexpected main/alternate opcode");
if (OpInst->getOpcode() == E->getAltOpcode()) {
- Mask[i] = e + i;
- AltScalars.push_back(E->Scalars[i]);
+ Mask[I] = Sz + I;
+ AltScalars.push_back(E->Scalars[I]);
} else {
- Mask[i] = i;
- OpScalars.push_back(E->Scalars[i]);
+ Mask[I] = I;
+ OpScalars.push_back(E->Scalars[I]);
}
}
More information about the llvm-commits
mailing list