[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 06:53:09 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:
I've left the FP intrinsic code the same as before because I believe it's correct for SVE. All SVE FP types < 128-bits are legal, leaving only the wider types that need splitting and LT.cost will correspond to the number of instructions.
https://github.com/llvm/llvm-project/pull/184358
More information about the llvm-commits
mailing list