Noticed by inspection when looking for other cmov bits.
llvm-svn: 115100
This commit is contained in:
parent
6d33f59952
commit
0574cc556a
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue