[llvm] [AArch64] Fix SVE cost model for various math intrinsics (PR #184358)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 07:58:31 PST 2026
================
@@ -1114,6 +1121,23 @@ AArch64TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
return getCallInstrCost(nullptr, RetTy, ICA.getArgTypes(), CostKind);
break;
}
+ case Intrinsic::sqrt:
+ case Intrinsic::fabs:
+ case Intrinsic::ceil:
+ case Intrinsic::floor:
+ case Intrinsic::nearbyint:
+ case Intrinsic::round:
+ case Intrinsic::rint:
+ case Intrinsic::roundeven:
+ case Intrinsic::trunc:
+ case Intrinsic::minnum:
+ case Intrinsic::maxnum: {
----------------
paulwalker-arm wrote:
I suppose we can add more at a later date but given you've added `minnum` and `maxnum`, is it worth adding the other variants just to keep them in sync?
https://github.com/llvm/llvm-project/pull/184358
More information about the llvm-commits
mailing list