[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 31 02:53:42 PDT 2004
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.cpp updated: 1.29 -> 1.30
---
Log message:
Add breaks
---
Diffs of the changes: (+12 -12)
Index: llvm/lib/Target/X86/X86InstrInfo.cpp
diff -u llvm/lib/Target/X86/X86InstrInfo.cpp:1.29 llvm/lib/Target/X86/X86InstrInfo.cpp:1.30
--- llvm/lib/Target/X86/X86InstrInfo.cpp:1.29 Sat Jul 31 04:44:32 2004
+++ llvm/lib/Target/X86/X86InstrInfo.cpp Sat Jul 31 04:53:31 2004
@@ -50,18 +50,18 @@
assert(isBranch(Opcode) && "MachineInstr must be a branch");
unsigned ROpcode;
switch (Opcode) {
- case X86::JB: ROpcode = X86::JAE;
- case X86::JAE: ROpcode = X86::JB;
- case X86::JE: ROpcode = X86::JNE;
- case X86::JNE: ROpcode = X86::JE;
- case X86::JBE: ROpcode = X86::JA;
- case X86::JA: ROpcode = X86::JBE;
- case X86::JS: ROpcode = X86::JNS;
- case X86::JNS: ROpcode = X86::JS;
- case X86::JL: ROpcode = X86::JGE;
- case X86::JGE: ROpcode = X86::JL;
- case X86::JLE: ROpcode = X86::JG;
- case X86::JG: ROpcode = X86::JLE;
+ case X86::JB: ROpcode = X86::JAE; break;
+ case X86::JAE: ROpcode = X86::JB; break;
+ case X86::JE: ROpcode = X86::JNE; break;
+ case X86::JNE: ROpcode = X86::JE; break;
+ case X86::JBE: ROpcode = X86::JA; break;
+ case X86::JA: ROpcode = X86::JBE; break;
+ case X86::JS: ROpcode = X86::JNS; break;
+ case X86::JNS: ROpcode = X86::JS; break;
+ case X86::JL: ROpcode = X86::JGE; break;
+ case X86::JGE: ROpcode = X86::JL; break;
+ case X86::JLE: ROpcode = X86::JG; break;
+ case X86::JG: ROpcode = X86::JLE; break;
default:
assert(0 && "Cannot reverse unconditional branches!");
}
More information about the llvm-commits
mailing list