Skip to content

Commit f6e143e

Browse files
committedJul 27, 2018
Revert "[LV][DebugInfo] Set DL to the middle block Icmp instruction"
This reverts commit r338106. llvm-svn: 338109
1 parent 12216f1 commit f6e143e

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed
 

‎llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,11 +2948,9 @@ BasicBlock *InnerLoopVectorizer::createVectorizedLoopSkeleton() {
29482948
// Add a check in the middle block to see if we have completed
29492949
// all of the iterations in the first vector loop.
29502950
// If (N - N%VF) == N, then we *don't* need to run the remainder.
2951-
CmpInst *CmpN =
2951+
Value *CmpN =
29522952
CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_EQ, Count,
29532953
CountRoundDown, "cmp.n", MiddleBlock->getTerminator());
2954-
// Copy the DL from loop start location to the check.
2955-
CmpN->setDebugLoc(OrigLoop->getStartLoc());
29562954
ReplaceInstWithInst(MiddleBlock->getTerminator(),
29572955
BranchInst::Create(ExitBlock, ScalarPH, CmpN));
29582956

‎llvm/test/Transforms/LoopVectorize/debugloc-skeleton.ll

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.