[PATCH] D132299: [AArch64] Add SK_Splice fixed-width costs

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 22 02:44:57 PDT 2022


fhahn accepted this revision.
fhahn added a comment.
This revision is now accepted and ready to land.

LGTM, thanks!



================
Comment at: llvm/test/Analysis/CostModel/AArch64/splice.ll:32
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %splice.v4i1 = call <4 x i1> @llvm.experimental.vector.splice.v4i1(<4 x i1> zeroinitializer, <4 x i1> zeroinitializer, i32 1)
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %splice.v2i1 = call <2 x i1> @llvm.experimental.vector.splice.v2i1(<2 x i1> zeroinitializer, <2 x i1> zeroinitializer, i32 1)
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: ret void
----------------
might be good to also have a test where the cost is != 0.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132299/new/

https://reviews.llvm.org/D132299



More information about the llvm-commits mailing list