[llvm] AMDGPU: Use pattern to select instruction for intrinsic llvm.fptrunc.round (PR #105761)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 06:55:18 PDT 2024


================
@@ -6957,8 +6957,7 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
     SDValue Result;
     Result = DAG.getNode(
         ISD::FPTRUNC_ROUND, sdl, VT, getValue(I.getArgOperand(0)),
-        DAG.getTargetConstant((int)*RoundMode, sdl,
-                              TLI.getPointerTy(DAG.getDataLayout())));
+        DAG.getTargetConstant((int)*RoundMode, sdl, MVT::i32));
----------------
arsenm wrote:

This is also a separate patch 

https://github.com/llvm/llvm-project/pull/105761


More information about the llvm-commits mailing list