[llvm] [AArch64] Fix SVE cost model for various math intrinsics (PR #184358)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 03:55:47 PST 2026


================
@@ -1114,6 +1121,25 @@ AArch64TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
       return getCallInstrCost(nullptr, RetTy, ICA.getArgTypes(), CostKind);
     break;
   }
+  case Intrinsic::sqrt:
----------------
paulwalker-arm wrote:

Looking at llvm/test/Analysis/CostModel/AArch64/arith-fp.ll shows a cost of 1 for legal scalar and fixed-length vector types.

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


More information about the llvm-commits mailing list