diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-08-23 15:26:12 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-08-23 15:26:12 +0000 |
commit | 91824678868d920a2fe7dc10fcac0a21966e6fc3 (patch) | |
tree | 769ae49a40d6c1718fdee8dc1a24eab835892e87 | |
parent | 9543f1498c30bad385474d9886c373a91724d28f (diff) | |
download | bcm5719-llvm-91824678868d920a2fe7dc10fcac0a21966e6fc3.tar.gz bcm5719-llvm-91824678868d920a2fe7dc10fcac0a21966e6fc3.zip |
[SLP] fix formatting; NFC
These are part of D57059, but that patch doesn't apply cleanly to trunk
at this point, so we might as well remove some of the noise.
llvm-svn: 369769
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 22723f29a3d..ae5b3e9dfad 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -3198,8 +3198,8 @@ int BoUpSLP::getEntryCost(TreeEntry *E) { I, TargetTransformInfo::TCK_RecipThroughput); } } - for (Value *i : VL) { - Instruction *I = cast<Instruction>(i); + for (Value *V : VL) { + Instruction *I = cast<Instruction>(V); assert(E->isOpcodeOrAlt(I) && "Unexpected main/alternate opcode"); ScalarCost += TTI->getInstructionCost( I, TargetTransformInfo::TCK_RecipThroughput); @@ -5484,8 +5484,7 @@ bool SLPVectorizerPass::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R, SmallVector<WeakTrackingVH, 8> TrackValues(VL.begin(), VL.end()); unsigned NextInst = 0, MaxInst = VL.size(); - for (unsigned VF = MaxVF; NextInst + 1 < MaxInst && VF >= MinVF; - VF /= 2) { + for (unsigned VF = MaxVF; NextInst + 1 < MaxInst && VF >= MinVF; VF /= 2) { // No actual vectorization should happen, if number of parts is the same as // provided vectorization factor (i.e. the scalar type is used for vector // code during codegen). |