[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 20 20:01:01 PST 2002
Changes in directory llvm/lib/Target/X86:
InstSelectSimple.cpp updated: 1.30 -> 1.31
---
Log message:
Dont' set flags
---
Diffs of the changes:
Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.30 llvm/lib/Target/X86/InstSelectSimple.cpp:1.31
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.30 Tue Nov 19 18:58:23 2002
+++ llvm/lib/Target/X86/InstSelectSimple.cpp Wed Nov 20 19:59:50 2002
@@ -240,7 +240,7 @@
// Move fp status word (concodes) to ax.
BuildMI (BB, X86::FNSTSWr8, 1, X86::AX);
// Load real concodes from ax.
- BuildMI (BB, X86::SAHF, 1, X86::EFLAGS).addReg(X86::AH);
+ BuildMI (BB, X86::SAHF, 1).addReg(X86::AH);
}
else
{ // integer comparison
@@ -250,16 +250,13 @@
switch (comparisonWidth)
{
case 1:
- BuildMI (BB, X86::CMPrr8, 2,
- X86::EFLAGS).addReg (reg1).addReg (reg2);
+ BuildMI (BB, X86::CMPrr8, 2).addReg (reg1).addReg (reg2);
break;
case 2:
- BuildMI (BB, X86::CMPrr16, 2,
- X86::EFLAGS).addReg (reg1).addReg (reg2);
+ BuildMI (BB, X86::CMPrr16, 2).addReg (reg1).addReg (reg2);
break;
case 4:
- BuildMI (BB, X86::CMPrr32, 2,
- X86::EFLAGS).addReg (reg1).addReg (reg2);
+ BuildMI (BB, X86::CMPrr32, 2).addReg (reg1).addReg (reg2);
break;
case 8:
default:
@@ -413,7 +410,7 @@
// followed by jump-if-equal to ifFalse, and jump-if-nonequal to
// ifTrue
unsigned int condReg = getReg (BI.getCondition ());
- BuildMI (BB, X86::CMPri8, 2, X86::EFLAGS).addReg (condReg).addZImm (0);
+ BuildMI (BB, X86::CMPri8, 2).addReg (condReg).addZImm (0);
BuildMI (BB, X86::JNE, 1).addPCDisp (BI.getSuccessor (0));
BuildMI (BB, X86::JE, 1).addPCDisp (BI.getSuccessor (1));
}
More information about the llvm-commits
mailing list