[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Fri May 19 11:43:53 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.cpp updated: 1.51 -> 1.52
---
Log message:
These can be transformed into lea as well. Not that we use this feature
currently...
---
Diffs of the changes: (+2 -0)
X86InstrInfo.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Target/X86/X86InstrInfo.cpp
diff -u llvm/lib/Target/X86/X86InstrInfo.cpp:1.51 llvm/lib/Target/X86/X86InstrInfo.cpp:1.52
--- llvm/lib/Target/X86/X86InstrInfo.cpp:1.51 Thu May 11 02:33:49 2006
+++ llvm/lib/Target/X86/X86InstrInfo.cpp Fri May 19 13:43:41 2006
@@ -152,12 +152,14 @@
return addRegReg(BuildMI(X86::LEA16r, 5, Dest), Src,
MI->getOperand(2).getReg());
case X86::ADD32ri:
+ case X86::ADD32ri8:
assert(MI->getNumOperands() == 3 && "Unknown add instruction!");
if (MI->getOperand(2).isImmediate())
return addRegOffset(BuildMI(X86::LEA32r, 5, Dest), Src,
MI->getOperand(2).getImmedValue());
return 0;
case X86::ADD16ri:
+ case X86::ADD16ri8:
if (DisableLEA16) return 0;
assert(MI->getNumOperands() == 3 && "Unknown add instruction!");
if (MI->getOperand(2).isImmediate())
More information about the llvm-commits
mailing list