aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-17 07:47:20 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-17 07:47:20 +0000
commit17dc674c13d0c8b696672ca55cd0fb265e01a164 (patch)
treebe9041c852d97e24b2ed4160dbc725afaae2ac42 /lib
parent5b672526205cc4438deb529363fb9bdaebbe086a (diff)
downloadexternal_llvm-17dc674c13d0c8b696672ca55cd0fb265e01a164.zip
external_llvm-17dc674c13d0c8b696672ca55cd0fb265e01a164.tar.gz
external_llvm-17dc674c13d0c8b696672ca55cd0fb265e01a164.tar.bz2
Add support for folding memory operands in MOVri{8,16,32} instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86RegisterInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp
index dae171f..c5ed4d0 100644
--- a/lib/Target/X86/X86RegisterInfo.cpp
+++ b/lib/Target/X86/X86RegisterInfo.cpp
@@ -120,6 +120,9 @@ bool X86RegisterInfo::foldMemoryOperand(MachineBasicBlock::iterator &MI,
case X86::MOVrr8: NI = MakeMRInst(X86::MOVmr8 , FrameIndex, MI); break;
case X86::MOVrr16: NI = MakeMRInst(X86::MOVmr16, FrameIndex, MI); break;
case X86::MOVrr32: NI = MakeMRInst(X86::MOVmr32, FrameIndex, MI); break;
+ case X86::MOVri8: NI = MakeMIInst(X86::MOVmi8 , FrameIndex, MI); break;
+ case X86::MOVri16: NI = MakeMIInst(X86::MOVmi16, FrameIndex, MI); break;
+ case X86::MOVri32: NI = MakeMIInst(X86::MOVmi32, FrameIndex, MI); break;
case X86::ADDrr8: NI = MakeMRInst(X86::ADDmr8 , FrameIndex, MI); break;
case X86::ADDrr16: NI = MakeMRInst(X86::ADDmr16, FrameIndex, MI); break;
case X86::ADDrr32: NI = MakeMRInst(X86::ADDmr32, FrameIndex, MI); break;