[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 1 20:18:32 PST 2005
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.cpp updated: 1.33 -> 1.34
---
Log message:
Disable 2->3 address promotion of add and inc instructions to LEA's. In
addition to being three address, LEA's don't set the flags.
This fixes 186.crafty.
---
Diffs of the changes: (+5 -0)
Index: llvm/lib/Target/X86/X86InstrInfo.cpp
diff -u llvm/lib/Target/X86/X86InstrInfo.cpp:1.33 llvm/lib/Target/X86/X86InstrInfo.cpp:1.34
--- llvm/lib/Target/X86/X86InstrInfo.cpp:1.33 Sat Jan 1 20:37:07 2005
+++ llvm/lib/Target/X86/X86InstrInfo.cpp Sat Jan 1 22:18:17 2005
@@ -55,6 +55,11 @@
unsigned Dest = MI->getOperand(0).getReg();
unsigned Src = MI->getOperand(1).getReg();
+ // FIXME: None of these instructions are promotable to LEAs without
+ // additional information. In particular, LEA doesn't set the flags that
+ // add and inc do. :(
+ return 0;
+
// FIXME: 16-bit LEA's are really slow on Athlons, but not bad on P4's. When
// we have subtarget support, enable the 16-bit LEA generation here.
bool DisableLEA16 = true;
More information about the llvm-commits
mailing list