summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-18 01:44:31 +0000
committerChris Lattner <sabre@nondot.org>2002-12-18 01:44:31 +0000
commitb437b7de1a7f9469894c6bff2f8a1dc1472995ae (patch)
tree1b3d2eca983e1204f0ab2a41cff5dba8e1a200c0 /llvm
parentdc451c6d2720a0317579e8ace56be1f9d81f1c03 (diff)
downloadbcm5719-llvm-b437b7de1a7f9469894c6bff2f8a1dc1472995ae.tar.gz
bcm5719-llvm-b437b7de1a7f9469894c6bff2f8a1dc1472995ae.zip
Don't force setCC instructions into AL
llvm-svn: 5104
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index 4cae283f7b0..e9492ae3b87 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/lib/Target/X86/InstSelectSimple.cpp
@@ -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
OpenPOWER on IntegriCloud