mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Dead code elimination.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96496 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -56,7 +56,6 @@ bool llvm::PHIElimination::runOnMachineFunction(MachineFunction &Fn) {
|
||||
MRI = &Fn.getRegInfo();
|
||||
|
||||
PHIDefs.clear();
|
||||
PHIKills.clear();
|
||||
bool Changed = false;
|
||||
|
||||
// Split critical edges to help the coalescer
|
||||
@@ -276,9 +275,6 @@ void llvm::PHIElimination::LowerAtomicPHINode(
|
||||
// path the PHI.
|
||||
MachineBasicBlock &opBlock = *MPhi->getOperand(i*2+2).getMBB();
|
||||
|
||||
// Record the kill.
|
||||
PHIKills[SrcReg].insert(&opBlock);
|
||||
|
||||
// If source is defined by an implicit def, there is no need to insert a
|
||||
// copy.
|
||||
MachineInstr *DefMI = MRI->getVRegDef(SrcReg);
|
||||
|
||||
Reference in New Issue
Block a user