[llvm] [AArch64] Fix SVE cost model for various math intrinsics (PR #184358)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 4 05:40:37 PST 2026
================
@@ -1114,6 +1121,25 @@ AArch64TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
return getCallInstrCost(nullptr, RetTy, ICA.getArgTypes(), CostKind);
break;
}
+ case Intrinsic::sqrt:
----------------
david-arm wrote:
Yeah, understood! I'll remove it, but I can also borrow the rest of the code from getTypeBasedIntrinsicInstrCost to make this more accurate for SVE types less than 128-bits.
https://github.com/llvm/llvm-project/pull/184358
More information about the llvm-commits
mailing list