[llvm] ISel: introduce vector ISD::LRINT, ISD::LLRINT; custom RISCV lowering (PR #66924)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 21 15:26:37 PDT 2023


================
@@ -662,6 +662,31 @@ static const CostTblEntry VectorIntrinsicCostTable[]{
     {Intrinsic::rint, MVT::nxv2f64, 7},
     {Intrinsic::rint, MVT::nxv4f64, 7},
     {Intrinsic::rint, MVT::nxv8f64, 7},
+    {Intrinsic::lrint, MVT::v2i32, 7},
----------------
topperc wrote:

Why are these 7? It's 1 instruction isn't it?

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


More information about the llvm-commits mailing list