[llvm] r246636 - [LV] Move some code around slightly to make the intent of the function more clear.
James Molloy via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 03:15:32 PDT 2015
Author: jamesm
Date: Wed Sep 2 05:15:32 2015
New Revision: 246636
URL: http://llvm.org/viewvc/llvm-project?rev=246636&view=rev
Log:
[LV] Move some code around slightly to make the intent of the function more clear.
NFC.
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=246636&r1=246635&r2=246636&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Wed Sep 2 05:15:32 2015
@@ -2870,12 +2870,10 @@ void InnerLoopVectorizer::createEmptyLoo
// faster.
emitMemRuntimeChecks(Lp, MiddleBlock);
- // Add the start index to the loop count to get the new end index.
- Value *CountRoundDown = getOrCreateVectorTripCount(Lp);
-
// Generate the induction variable.
// The loop step is equal to the vectorization factor (num of SIMD elements)
// times the unroll factor (num of SIMD instructions).
+ Value *CountRoundDown = getOrCreateVectorTripCount(Lp);
Constant *Step = ConstantInt::get(IdxTy, VF * UF);
Induction =
createInductionVariable(Lp, StartIdx, CountRoundDown, Step,
More information about the llvm-commits
mailing list