diff options
author | James Molloy <james.molloy@arm.com> | 2015-09-02 10:15:32 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-09-02 10:15:32 +0000 |
commit | f2523e38d8fc584ed1dd79f817a9cececcbe9b4c (patch) | |
tree | a2c50f66d37f9b1ff804ce272a5b6c6cb131d7ea /llvm/lib/Transforms | |
parent | aca2f400ba94227bb17ff89155b0153979aac38c (diff) | |
download | bcm5719-llvm-f2523e38d8fc584ed1dd79f817a9cececcbe9b4c.tar.gz bcm5719-llvm-f2523e38d8fc584ed1dd79f817a9cececcbe9b4c.zip |
[LV] Move some code around slightly to make the intent of the function more clear.
NFC.
llvm-svn: 246636
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 6d4a134aa67..0975b03da17 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -2870,12 +2870,10 @@ void InnerLoopVectorizer::createEmptyLoop() { // 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, |