Skip to content

Commit 0e18300

Browse files
committed
[X86] Make an assert in LowerSCALAR_TO_VECTOR stricter to make it clear what types are allowed here. NFC
Make it clear that only integer type with i32 or smaller elements shoudl get to this part of the code. llvm-svn: 363629
1 parent 36a7a98 commit 0e18300

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17175,7 +17175,8 @@ static SDValue LowerSCALAR_TO_VECTOR(SDValue Op, const X86Subtarget &Subtarget,
1717517175
// Insert the 128-bit vector.
1717617176
return insert128BitVector(DAG.getUNDEF(OpVT), Op, 0, DAG, dl);
1717717177
}
17178-
assert(OpVT.is128BitVector() && "Expected an SSE type!");
17178+
assert(OpVT.is128BitVector() && OpVT.isInteger() && OpVT != MVT::v2i64 &&
17179+
"Expected an SSE type!");
1717917180

1718017181
// Pass through a v4i32 SCALAR_TO_VECTOR as that's what we use in tblgen.
1718117182
if (OpVT == MVT::v4i32)

0 commit comments

Comments
 (0)