Skip to content

Commit 1e8ff34

Browse files
changpengpravinjagtap
authored andcommitted
DAG: Change round-mode operand type to i32 for FPTRUNC_ROUND (llvm#106424)
We need this immediate type to be consistent. This is the pre-commit for llvm#105761
1 parent 89fdc03 commit 1e8ff34

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6976,8 +6976,7 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
69766976
SDValue Result;
69776977
Result = DAG.getNode(
69786978
ISD::FPTRUNC_ROUND, sdl, VT, getValue(I.getArgOperand(0)),
6979-
DAG.getTargetConstant((int)*RoundMode, sdl,
6980-
TLI.getPointerTy(DAG.getDataLayout())));
6979+
DAG.getTargetConstant((int)*RoundMode, sdl, MVT::i32));
69816980
setValue(&I, Result);
69826981

69836982
return;

0 commit comments

Comments
 (0)