[llvm-commits] [llvm] r115100 - /llvm/trunk/lib/Target/X86/X86FastISel.cpp
Eric Christopher
echristo at apple.com
Wed Sep 29 16:00:29 PDT 2010
Author: echristo
Date: Wed Sep 29 18:00:29 2010
New Revision: 115100
URL: http://llvm.org/viewvc/llvm-project?rev=115100&view=rev
Log:
Noticed by inspection when looking for other cmov bits.
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=115100&r1=115099&r2=115100&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Wed Sep 29 18:00:29 2010
@@ -1194,6 +1194,9 @@
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) {
More information about the llvm-commits
mailing list