llvm-project
6778c11f - [AArch64] Fix SVE cost model for various math intrinsics (#184358)

Commit
26 days ago
[AArch64] Fix SVE cost model for various math intrinsics (#184358) The implementation of getIntrinsicInstrCost in BasicTTIImpl assumes that for some intrinsics if we're using custom lowering for the equivalent DAG node that the cost needs to be 2, instead of 1 for legal ops. However, even though we use custom lowering for these scalable vector operations when SVE is available, we still end up generating the same efficient codegen as fixed-width. This patch deals with a few obvious intrinsics that we know get lowered to something sensible and return the same cost as NEON, i.e. 1.
Author
Parents
Loading