mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
We don't need to update live intervals for dead PHIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54369 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d3eda89f4c
commit
e7b8205e6e
@ -884,6 +884,8 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction &Fn) {
|
||||
I != E; ) {
|
||||
MachineInstr* PInstr = *(I++);
|
||||
|
||||
// Don't do live interval updating for dead PHIs.
|
||||
if (!PInstr->registerDefIsDead(PInstr->getOperand(0).getReg())) {
|
||||
// Trim live intervals of input registers. They are no longer live into
|
||||
// this block.
|
||||
for (unsigned i = 1; i < PInstr->getNumOperands(); i += 2) {
|
||||
@ -917,6 +919,7 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction &Fn) {
|
||||
PLR->start, PLR->valno);
|
||||
PI.addRange(R);
|
||||
}
|
||||
}
|
||||
|
||||
LI.RemoveMachineInstrFromMaps(PInstr);
|
||||
PInstr->eraseFromParent();
|
||||
|
Loading…
Reference in New Issue
Block a user