mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
Preserve line number information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bcf26aee86
commit
bd5426a4f2
@ -326,7 +326,8 @@ bool LoopRotate::rotateLoop(Loop *L) {
|
||||
// We can fold the conditional branch in the preheader, this makes things
|
||||
// simpler. The first step is to remove the extra edge to the Exit block.
|
||||
Exit->removePredecessor(OrigPreheader, true /*preserve LCSSA*/);
|
||||
BranchInst::Create(NewHeader, PHBI);
|
||||
BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI);
|
||||
NewBI->setDebugLoc(PHBI->getDebugLoc());
|
||||
PHBI->eraseFromParent();
|
||||
|
||||
// With our CFG finalized, update DomTree if it is available.
|
||||
|
Loading…
Reference in New Issue
Block a user