mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[X86] Remove assert leftover from when i1 was a legal type. Add more accurate assert. NFC
llvm-svn: 349007
This commit is contained in:
parent
f7aedb309c
commit
87cbe51492
@ -18815,9 +18815,6 @@ SDValue X86TargetLowering::EmitCmp(SDValue Op0, SDValue Op1, unsigned X86CC,
|
||||
if (isNullConstant(Op1))
|
||||
return EmitTest(Op0, X86CC, dl, DAG);
|
||||
|
||||
assert(!(isa<ConstantSDNode>(Op1) && Op0.getValueType() == MVT::i1) &&
|
||||
"Unexpected comparison operation for MVT::i1 operands");
|
||||
|
||||
if ((Op0.getValueType() == MVT::i8 || Op0.getValueType() == MVT::i16 ||
|
||||
Op0.getValueType() == MVT::i32 || Op0.getValueType() == MVT::i64)) {
|
||||
// Only promote the compare up to I32 if it is a 16 bit operation
|
||||
@ -18839,6 +18836,7 @@ SDValue X86TargetLowering::EmitCmp(SDValue Op0, SDValue Op1, unsigned X86CC,
|
||||
SDValue Sub = DAG.getNode(X86ISD::SUB, dl, VTs, Op0, Op1);
|
||||
return SDValue(Sub.getNode(), 1);
|
||||
}
|
||||
assert(Op0.getValueType().isFloatingPoint() && "Unexpected VT!");
|
||||
return DAG.getNode(X86ISD::CMP, dl, MVT::i32, Op0, Op1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user