diff options
| author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-12 18:54:11 +0000 |
|---|---|---|
| committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-12 18:54:11 +0000 |
| commit | 01daa32a92bfc6b0b04a6e3a40e1f310ec6501a6 (patch) | |
| tree | 4828a4fb27e4380a1b13f91655c09d90e1b89388 /llvm/lib/Target/Sparc | |
| parent | 03fae5e5db65bd5dee83ebaa85b1b9f66867b813 (diff) | |
| download | bcm5719-llvm-01daa32a92bfc6b0b04a6e3a40e1f310ec6501a6.tar.gz bcm5719-llvm-01daa32a92bfc6b0b04a6e3a40e1f310ec6501a6.zip | |
Disable use of the Phi machine instruction which is no longer needed
for register allocation.
llvm-svn: 1270
Diffstat (limited to 'llvm/lib/Target/Sparc')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index 533d74c15f9..4feecbb1bd1 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp @@ -2017,6 +2017,10 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, } 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. Instruction* phi = subtreeRoot->getInstruction(); mvec[0] = new MachineInstr(PHI, 1 + phi->getNumOperands()); @@ -2027,6 +2031,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, phi->getOperand(i)); break; } +#endif NEED_PHI_MACHINE_INSTRS case 71: // reg: VReg case 72: // reg: Constant |

