[llvm] [RISCV] Remove {s,u}int_to_fp custom op action for f16/bf16. NFC (PR #111471)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 21:41:17 PDT 2024


================
@@ -1071,9 +1071,7 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
       setOperationAction({ISD::VP_MERGE, ISD::VP_SELECT, ISD::SELECT}, VT,
                          Custom);
       setOperationAction(ISD::SELECT_CC, VT, Expand);
-      setOperationAction({ISD::SINT_TO_FP, ISD::UINT_TO_FP, ISD::VP_SINT_TO_FP,
-                          ISD::VP_UINT_TO_FP},
-                         VT, Custom);
+      setOperationAction({ISD::VP_SINT_TO_FP, ISD::VP_UINT_TO_FP}, VT, Custom);
----------------
lukel97 wrote:

Yeah, their "legal pos" is always the result type. We could change it to match

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


More information about the llvm-commits mailing list