Skip to content

Commit cb0ddf3

Browse files
Fixed the undef issue
1 parent 5115f34 commit cb0ddf3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56248,12 +56248,11 @@ static SDValue combineFP_TO_xINT_SAT(SDNode *N, SelectionDAG &DAG,
5624856248
SDLoc dl(N);
5624956249

5625056250
if (SrcVT == MVT::v2f32 && DstVT == MVT::v2i64) {
56251-
// Create an undefined value of type v2f32
56252-
SDValue UndefV2F32Value = DAG.getUNDEF(MVT::v2f32);
56251+
SDValue V2F32Value = DAG.getUNDEF(SrcVT);
5625356252

56254-
// Concatenate the original v2f32 input and undef v2f32 to create v4f32
56253+
// Concatenate the original v2f32 input and V2F32Value to create v4f32
5625556254
SDValue NewSrc = DAG.getNode(ISD::CONCAT_VECTORS, dl, MVT::v4f32,
56256-
N->getOperand(0), UndefV2F32Value);
56255+
N->getOperand(0), V2F32Value);
5625756256

5625856257
// Select the FP_TO_SINT_SAT/FP_TO_UINT_SAT node
5625956258
if (IsSigned)

0 commit comments

Comments
 (0)