projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
200a435
)
Disable use of the Phi machine instruction which is no longer needed
author
Vikram S. Adve
<vadve@cs.uiuc.edu>
Mon, 12 Nov 2001 18:54:11 +0000
(18:54 +0000)
committer
Vikram S. Adve
<vadve@cs.uiuc.edu>
Mon, 12 Nov 2001 18:54:11 +0000
(18:54 +0000)
for register allocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1270
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/SparcV9/SparcV9InstrSelection.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/SparcV9/SparcV9InstrSelection.cpp
b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
index 533d74c15f91bf3c31f2d003ebf8d8052ee26080..4feecbb1bd1ed0328f3a4df0c41272e627b9db35 100644
(file)
--- a/
lib/Target/SparcV9/SparcV9InstrSelection.cpp
+++ b/
lib/Target/SparcV9/SparcV9InstrSelection.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