mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Update live-in lists when splitting critical edges.
Fixes PR10814. Patch by Jan Sjödin! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -571,6 +571,11 @@ MachineBasicBlock::SplitCriticalEdge(MachineBasicBlock *Succ, Pass *P) {
|
||||
if (i->getOperand(ni+1).getMBB() == this)
|
||||
i->getOperand(ni+1).setMBB(NMBB);
|
||||
|
||||
// Inherit live-ins from the successor
|
||||
for (MachineBasicBlock::livein_iterator I = Succ->livein_begin(),
|
||||
E = Succ->livein_end(); I != E; ++I)
|
||||
NMBB->addLiveIn(*I);
|
||||
|
||||
// Update LiveVariables.
|
||||
if (LV) {
|
||||
// Restore kills of virtual registers that were killed by the terminators.
|
||||
|
Reference in New Issue
Block a user