diff options
author | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-07-27 08:22:54 +0000 |
---|---|---|
committer | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-07-27 08:22:54 +0000 |
commit | f6e143e67f8f69788b77f25cc7d1bd22fd07603d (patch) | |
tree | d66b04e2cd9f49b1917b171b08bb466e3a522b1d /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | 12216f1d4a0852accfd22cb6c313a90ecbc19c29 (diff) | |
download | bcm5719-llvm-f6e143e67f8f69788b77f25cc7d1bd22fd07603d.tar.gz bcm5719-llvm-f6e143e67f8f69788b77f25cc7d1bd22fd07603d.zip |
Revert "[LV][DebugInfo] Set DL to the middle block Icmp instruction"
This reverts commit r338106.
llvm-svn: 338109
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-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 a231e2fdd6a..3c693f5d5ee 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -2948,11 +2948,9 @@ BasicBlock *InnerLoopVectorizer::createVectorizedLoopSkeleton() { // Add a check in the middle block to see if we have completed // all of the iterations in the first vector loop. // If (N - N%VF) == N, then we *don't* need to run the remainder. - CmpInst *CmpN = + Value *CmpN = CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_EQ, Count, CountRoundDown, "cmp.n", MiddleBlock->getTerminator()); - // Copy the DL from loop start location to the check. - CmpN->setDebugLoc(OrigLoop->getStartLoc()); ReplaceInstWithInst(MiddleBlock->getTerminator(), BranchInst::Create(ExitBlock, ScalarPH, CmpN)); |