summaryrefslogtreecommitdiff
path: root/lib/Target/X86/PeepholeOptimizer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-17 06:28:19 +0000
committerChris Lattner <sabre@nondot.org>2004-02-17 06:28:19 +0000
commite87331d11d153747cbb473a95c954693ad0c59b6 (patch)
tree90b4d12b815645ce3250a68cb84cb5aaa9744bfd /lib/Target/X86/PeepholeOptimizer.cpp
parent7ddc3fbd2293dbca74f35b37892e7366c4ebf4f3 (diff)
downloadllvm-e87331d11d153747cbb473a95c954693ad0c59b6.tar.gz
llvm-e87331d11d153747cbb473a95c954693ad0c59b6.tar.bz2
llvm-e87331d11d153747cbb473a95c954693ad0c59b6.tar.xz
Fix the mneumonics for the mov instructions to have the source and destination
order in the correct sense!! Arg! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/PeepholeOptimizer.cpp')
-rw-r--r--lib/Target/X86/PeepholeOptimizer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/PeepholeOptimizer.cpp b/lib/Target/X86/PeepholeOptimizer.cpp
index 77f4a67620..35dd4a1df4 100644
--- a/lib/Target/X86/PeepholeOptimizer.cpp
+++ b/lib/Target/X86/PeepholeOptimizer.cpp
@@ -460,7 +460,7 @@ bool SSAPH::PeepholeOptimize(MachineBasicBlock &MBB,
switch (MI->getOpcode()) {
// Register to memory stores. Format: <base,scale,indexreg,immdisp>, srcreg
- case X86::MOVrm32: case X86::MOVrm16: case X86::MOVrm8:
+ case X86::MOVmr32: case X86::MOVmr16: case X86::MOVmr8:
case X86::MOVmi32: case X86::MOVmi16: case X86::MOVmi8:
// Check to see if we can fold the source instruction into this one...
if (MachineInstr *SrcInst = getDefiningInst(MI->getOperand(4))) {
@@ -478,9 +478,9 @@ bool SSAPH::PeepholeOptimize(MachineBasicBlock &MBB,
return true;
break;
- case X86::MOVmr32:
- case X86::MOVmr16:
- case X86::MOVmr8:
+ case X86::MOVrm32:
+ case X86::MOVrm16:
+ case X86::MOVrm8:
// If we can optimize the addressing expression, do so now.
if (OptimizeAddress(MI, 1))
return true;