[llvm] [AArch64] Add cost model for @experimental.vector.match (PR #118512)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 10:10:52 PST 2024
================
@@ -781,7 +781,9 @@ class TargetTransformInfoImplBase {
default:
break;
case Intrinsic::experimental_vector_histogram_add:
- // For now, we want explicit support from the target for histograms.
+ case Intrinsic::experimental_vector_match:
+ // For now, we want explicit support from the target for histograms and
+ // matches.
----------------
paulwalker-arm wrote:
This seems excessive given you have implemented common lowering code where I think the base cost is effectively:
`(cost_of_extract_elt+cost_of_vector_splat+cost_of_vector_cmp+)*number_of_needle_elements`.
https://github.com/llvm/llvm-project/pull/118512
More information about the llvm-commits
mailing list