diff options
author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2019-06-12 08:34:51 +0000 |
---|---|---|
committer | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2019-06-12 08:34:51 +0000 |
commit | a94715639619a258a714deeb485d2d7fb9dd1cb9 (patch) | |
tree | 008ae0d540dcf5ef766d3cd14baffcaa245e4791 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | f8b4e60c7f514d70e9b603673fbc351c5df141e1 (diff) | |
download | llvm-a94715639619a258a714deeb485d2d7fb9dd1cb9.zip llvm-a94715639619a258a714deeb485d2d7fb9dd1cb9.tar.gz llvm-a94715639619a258a714deeb485d2d7fb9dd1cb9.tar.bz2 |
Revert "[DebugInfo@O2][LoopVectorize] pr39024: Vectorized code linenos step through loop even after completion"
This reverts commit 1a0f7a2077b70c9864faa476e15b048686cf1ca7.
See phabricator thread for D60831.
llvm-svn: 363132
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp index 5fa3713..aa69a8d 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -579,13 +579,7 @@ BasicBlock *llvm::SplitBlockPredecessors(BasicBlock *BB, // The new block unconditionally branches to the old block. BranchInst *BI = BranchInst::Create(BB, NewBB); - // Splitting the predecessors of a loop header creates a preheader block. - if (LI && LI->isLoopHeader(BB)) - // Using the loop start line number prevents debuggers stepping into the - // loop body for this instruction. - BI->setDebugLoc(LI->getLoopFor(BB)->getStartLoc()); - else - BI->setDebugLoc(BB->getFirstNonPHIOrDbg()->getDebugLoc()); + BI->setDebugLoc(BB->getFirstNonPHIOrDbg()->getDebugLoc()); // Move the edges from Preds to point to NewBB instead of BB. for (unsigned i = 0, e = Preds.size(); i != e; ++i) { |