[llvm-commits] CVS: llvm/lib/Target/X86/PeepholeOptimizer.cpp
Alkis Evlogimenos
alkis at niobe.cs.uiuc.edu
Tue Feb 17 09:11:06 PST 2004
Changes in directory llvm/lib/Target/X86:
PeepholeOptimizer.cpp updated: 1.23 -> 1.24
---
Log message:
ADDmi{16,32} should be in the next case statement.
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/Target/X86/PeepholeOptimizer.cpp
diff -u llvm/lib/Target/X86/PeepholeOptimizer.cpp:1.23 llvm/lib/Target/X86/PeepholeOptimizer.cpp:1.24
--- llvm/lib/Target/X86/PeepholeOptimizer.cpp:1.23 Tue Feb 17 01:36:32 2004
+++ llvm/lib/Target/X86/PeepholeOptimizer.cpp Tue Feb 17 09:10:11 2004
@@ -121,7 +121,6 @@
#endif
case X86::ADDri16: case X86::ADDri32:
- case X86::ADDmi16: case X86::ADDmi32:
case X86::SUBri16: case X86::SUBri32:
case X86::ANDri16: case X86::ANDri32:
case X86::ORri16: case X86::ORri32:
@@ -136,8 +135,6 @@
default: assert(0 && "Unknown opcode value!");
case X86::ADDri16: Opcode = X86::ADDri16b; break;
case X86::ADDri32: Opcode = X86::ADDri32b; break;
- case X86::ADDmi16: Opcode = X86::ADDmi16b; break;
- case X86::ADDmi32: Opcode = X86::ADDmi32b; break;
case X86::SUBri16: Opcode = X86::SUBri16b; break;
case X86::SUBri32: Opcode = X86::SUBri32b; break;
case X86::ANDri16: Opcode = X86::ANDri16b; break;
@@ -156,6 +153,7 @@
return false;
+ case X86::ADDmi16: case X86::ADDmi32:
case X86::ANDmi16: case X86::ANDmi32:
assert(MI->getNumOperands() == 5 && "These should all have 5 operands!");
if (MI->getOperand(4).isImmediate()) {
@@ -165,6 +163,8 @@
unsigned Opcode;
switch (MI->getOpcode()) {
default: assert(0 && "Unknown opcode value!");
+ case X86::ADDmi16: Opcode = X86::ADDmi16b; break;
+ case X86::ADDmi32: Opcode = X86::ADDmi32b; break;
case X86::ANDmi16: Opcode = X86::ANDmi16b; break;
case X86::ANDmi32: Opcode = X86::ANDmi32b; break;
}
More information about the llvm-commits
mailing list