Noticed by inspection when looking for other cmov bits.

llvm-svn: 115100
This commit is contained in:
Eric Christopher 2010-09-29 23:00:29 +00:00
parent 6d33f59952
commit 0574cc556a
1 changed files with 3 additions and 0 deletions

View File

@ -1194,6 +1194,9 @@ bool X86FastISel::X86SelectSelect(const Instruction *I) {
if (VT == MVT::Other || !isTypeLegal(I->getType(), VT)) if (VT == MVT::Other || !isTypeLegal(I->getType(), VT))
return false; return false;
// We only use cmov here, if we don't have a cmov instruction bail.
if (!Subtarget->hasCMov()) return false;
unsigned Opc = 0; unsigned Opc = 0;
const TargetRegisterClass *RC = NULL; const TargetRegisterClass *RC = NULL;
if (VT.getSimpleVT() == MVT::i16) { if (VT.getSimpleVT() == MVT::i16) {