summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-09-29 23:00:29 +0000
committerEric Christopher <echristo@apple.com>2010-09-29 23:00:29 +0000
commit0574cc556ac6946c125fa4927c36be0ca319bc35 (patch)
tree6b68c8bbe28d42525a1a55fb3fe6ce23e82042c8 /llvm/lib
parent6d33f59952b005d895fa840569e81bebcc089838 (diff)
downloadbcm5719-llvm-0574cc556ac6946c125fa4927c36be0ca319bc35.tar.gz
bcm5719-llvm-0574cc556ac6946c125fa4927c36be0ca319bc35.zip
Noticed by inspection when looking for other cmov bits.
llvm-svn: 115100
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 50dd2c5d3f1..e7813716e47 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -1194,6 +1194,9 @@ bool X86FastISel::X86SelectSelect(const Instruction *I) {
if (VT == MVT::Other || !isTypeLegal(I->getType(), VT))
return false;
+ // We only use cmov here, if we don't have a cmov instruction bail.
+ if (!Subtarget->hasCMov()) return false;
+
unsigned Opc = 0;
const TargetRegisterClass *RC = NULL;
if (VT.getSimpleVT() == MVT::i16) {
OpenPOWER on IntegriCloud