Skip to content

Commit

Permalink
[X86] Add an assert that v32i16/v64i8 splitting in LowerVSETCC should…
Browse files Browse the repository at this point in the history
… only occur when AVX512BW is disabled. NFC

With BWI we should only get a v32i1/v64i1 result type.
  • Loading branch information
topperc committed May 9, 2020
1 parent 6eee2d9 commit 56bf0b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm/lib/Target/X86/X86ISelLowering.cpp
Expand Up @@ -22231,8 +22231,10 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget,
if (VT.is256BitVector() && !Subtarget.hasInt256())
return splitIntVSETCC(Op, DAG);

if (VT == MVT::v32i16 || VT == MVT::v64i8)
if (VT == MVT::v32i16 || VT == MVT::v64i8) {
assert(!Subtarget.hasBWI() && "Unexpected VT with AVX512BW!");
return splitIntVSETCC(Op, DAG);
}

// If this is a SETNE against the signed minimum value, change it to SETGT.
// If this is a SETNE against the signed maximum value, change it to SETLT.
Expand Down

0 comments on commit 56bf0b5

Please sign in to comment.