forked from OSchip/llvm-project
[X86] Remove LowerVSETCC code for handling vXi1 setcc with vXi8/vXi16 input type. NFC
These kinds of setccs are promoted by a DAG combine before they ever get to legalization. llvm-svn: 323501
This commit is contained in:
parent
ad8ce0b800
commit
faa56f7b08
|
@ -17944,12 +17944,9 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget,
|
|||
if (VT.getVectorElementType() == MVT::i1) {
|
||||
// In AVX-512 architecture setcc returns mask with i1 elements,
|
||||
// But there is no compare instruction for i8 and i16 elements in KNL.
|
||||
// In this case use SSE compare
|
||||
if (OpVT.getScalarSizeInBits() >= 32 || Subtarget.hasBWI())
|
||||
return LowerIntVSETCC_AVX512(Op, DAG);
|
||||
|
||||
return DAG.getNode(ISD::TRUNCATE, dl, VT,
|
||||
DAG.getNode(ISD::SETCC, dl, OpVT, Op0, Op1, CC));
|
||||
assert((OpVT.getScalarSizeInBits() >= 32 || Subtarget.hasBWI()) &&
|
||||
"Unexpected operand type");
|
||||
return LowerIntVSETCC_AVX512(Op, DAG);
|
||||
}
|
||||
|
||||
// Lower using XOP integer comparisons.
|
||||
|
|
Loading…
Reference in New Issue