mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Forgot to remove a register from the PHI-union after I'd determined that it
interfered with other registers. Seems like that might be a good thing to do. :-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44902 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ae6135fa3
commit
ed2ffa25a1
@ -357,10 +357,11 @@ void StrongPHIElimination::processPHIUnion(MachineInstr* Inst,
|
||||
// Insert copies for child
|
||||
for (int i = Inst->getNumOperands() - 1; i >= 2; i-=2) {
|
||||
if (Inst->getOperand(i-1).getReg() == child->getReg()) {
|
||||
unsigned SrcReg = Inst->getOperand(i-1).getReg();
|
||||
unsigned SrcReg = child->getReg();
|
||||
MachineBasicBlock* From = Inst->getOperand(i).getMBB();
|
||||
|
||||
Waiting[From].push_back(std::make_pair(SrcReg, DestReg));
|
||||
PHIUnion.erase(SrcReg);
|
||||
}
|
||||
}
|
||||
|
||||
@ -369,10 +370,11 @@ void StrongPHIElimination::processPHIUnion(MachineInstr* Inst,
|
||||
// Insert copies for parent
|
||||
for (int i = Inst->getNumOperands() - 1; i >= 2; i-=2) {
|
||||
if (Inst->getOperand(i-1).getReg() == DFNode->getReg()) {
|
||||
unsigned SrcReg = Inst->getOperand(i-1).getReg();
|
||||
unsigned SrcReg = DFNode->getReg();
|
||||
MachineBasicBlock* From = Inst->getOperand(i).getMBB();
|
||||
|
||||
Waiting[From].push_back(std::make_pair(SrcReg, DestReg));
|
||||
PHIUnion.erase(SrcReg);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -380,10 +382,11 @@ void StrongPHIElimination::processPHIUnion(MachineInstr* Inst,
|
||||
// Insert copies for parent
|
||||
for (int i = Inst->getNumOperands() - 1; i >= 2; i-=2) {
|
||||
if (Inst->getOperand(i-1).getReg() == DFNode->getReg()) {
|
||||
unsigned SrcReg = Inst->getOperand(i-1).getReg();
|
||||
unsigned SrcReg = DFNode->getReg();
|
||||
MachineBasicBlock* From = Inst->getOperand(i).getMBB();
|
||||
|
||||
Waiting[From].push_back(std::make_pair(SrcReg, DestReg));
|
||||
PHIUnion.erase(SrcReg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user