[llvm] [RISCV][TTI] Implement vector costs for `llvm.fpto{u|s}i.sat()`. (PR #143655)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 11 11:30:09 PDT 2025


================
@@ -1497,6 +1497,33 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
                           cast<VectorType>(ICA.getArgTypes()[0]), {}, CostKind,
                           0, cast<VectorType>(ICA.getReturnType()));
   }
+  case Intrinsic::fptoui_sat:
----------------
topperc wrote:

Can we do this in target independent code? The missing scalarization for the source type isn't just a RISC-V bug.

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


More information about the llvm-commits mailing list