Don't force setCC instructions into AL
authorChris Lattner <sabre@nondot.org>
Wed, 18 Dec 2002 01:44:31 +0000 (01:44 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Dec 2002 01:44:31 +0000 (01:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5104 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index 4cae283f7b089fa52f466af2834308dd5b7bb3d8..e9492ae3b87ee06f1eeea1cea1727113272286d5 100644 (file)
@@ -437,10 +437,7 @@ void ISel::visitSetCCInst(SetCondInst &I, unsigned OpNum) {
     {X86::SETEr, X86::SETNEr, X86::SETLr, X86::SETGr, X86::SETLEr, X86::SETGEr},
   };
 
-  BuildMI(BB, OpcodeTab[CompTy->isSigned()][OpNum], 0, X86::AL);
-  
-  // Put it in the result using a move.
-  BuildMI (BB, X86::MOVrr8, 1, getReg(I)).addReg(X86::AL);
+  BuildMI(BB, OpcodeTab[CompTy->isSigned()][OpNum], 0, getReg(I));
 }
 
 /// promote32 - Emit instructions to turn a narrow operand into a 32-bit-wide
index 4cae283f7b089fa52f466af2834308dd5b7bb3d8..e9492ae3b87ee06f1eeea1cea1727113272286d5 100644 (file)
@@ -437,10 +437,7 @@ void ISel::visitSetCCInst(SetCondInst &I, unsigned OpNum) {
     {X86::SETEr, X86::SETNEr, X86::SETLr, X86::SETGr, X86::SETLEr, X86::SETGEr},
   };
 
-  BuildMI(BB, OpcodeTab[CompTy->isSigned()][OpNum], 0, X86::AL);
-  
-  // Put it in the result using a move.
-  BuildMI (BB, X86::MOVrr8, 1, getReg(I)).addReg(X86::AL);
+  BuildMI(BB, OpcodeTab[CompTy->isSigned()][OpNum], 0, getReg(I));
 }
 
 /// promote32 - Emit instructions to turn a narrow operand into a 32-bit-wide