mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Disable use of the Phi machine instruction which is no longer needed
for register allocation. llvm-svn: 1270
This commit is contained in:
parent
624846d3fd
commit
a3f0115c71
@ -2017,6 +2017,10 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
|
|||||||
}
|
}
|
||||||
|
|
||||||
case 64: // reg: Phi(reg,reg)
|
case 64: // reg: Phi(reg,reg)
|
||||||
|
numInstr = 0; // don't forward the value
|
||||||
|
break;
|
||||||
|
#undef NEED_PHI_MACHINE_INSTRS
|
||||||
|
#ifdef NEED_PHI_MACHINE_INSTRS
|
||||||
{ // This instruction has variable #operands, so resultPos is 0.
|
{ // This instruction has variable #operands, so resultPos is 0.
|
||||||
Instruction* phi = subtreeRoot->getInstruction();
|
Instruction* phi = subtreeRoot->getInstruction();
|
||||||
mvec[0] = new MachineInstr(PHI, 1 + phi->getNumOperands());
|
mvec[0] = new MachineInstr(PHI, 1 + phi->getNumOperands());
|
||||||
@ -2027,6 +2031,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
|
|||||||
phi->getOperand(i));
|
phi->getOperand(i));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif NEED_PHI_MACHINE_INSTRS
|
||||||
|
|
||||||
case 71: // reg: VReg
|
case 71: // reg: VReg
|
||||||
case 72: // reg: Constant
|
case 72: // reg: Constant
|
||||||
|
Loading…
Reference in New Issue
Block a user