diff options
author | Kostya Serebryany <kcc@google.com> | 2019-05-07 20:57:11 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2019-05-07 20:57:11 +0000 |
commit | b9c57683026e51f5b0a1f779c95895b16e8de04c (patch) | |
tree | b63fc749f44c0309b2544454b1a2edd240d09711 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | f610110f1ac1177950f7727175fc299391401a9d (diff) | |
download | bcm5719-llvm-b9c57683026e51f5b0a1f779c95895b16e8de04c.tar.gz bcm5719-llvm-b9c57683026e51f5b0a1f779c95895b16e8de04c.zip |
revert r360162 as it breaks most of the buildbots
llvm-svn: 360190
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 a04092e54a9..aa7b933022c 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -566,13 +566,7 @@ BasicBlock *llvm::SplitBlockPredecessors(BasicBlock *BB, // The new block unconditionally branches to the old block. BranchInst *BI = BranchInst::Create(BB, NewBB); - // Splitting the precedessors 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) { |