[X86] Disable custom type legalization for v2i32/v4i16/v8i8->i64.

The default legalization can take care of this.

llvm-svn: 368967
This commit is contained in:
Craig Topper 2019-08-15 05:51:58 +00:00
parent 57286afe4e
commit a57734ba4e
1 changed files with 1 additions and 2 deletions

View File

@ -26200,8 +26200,7 @@ static SDValue LowerBITCAST(SDValue Op, const X86Subtarget &Subtarget,
SrcVT == MVT::i64) && "Unexpected VT!");
assert(Subtarget.hasSSE2() && "Requires at least SSE2!");
if (DstVT != MVT::i64 &&
!(DstVT == MVT::f64 && SrcVT == MVT::i64) &&
if (!(DstVT == MVT::f64 && SrcVT == MVT::i64) &&
!(DstVT == MVT::x86mmx && SrcVT.isVector()))
// This conversion needs to be expanded.
return SDValue();