[PATCH] D124101: [RISCV] Add cost model for SK_Broadcast

Roger Ferrer Ibanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 23:06:25 PDT 2022


rogfer01 added inline comments.


================
Comment at: llvm/test/Analysis/CostModel/RISCV/rvv-shuffle.ll:14
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %5 = shufflevector <vscale x 4 x i32> undef, <vscale x 4 x i32> undef, <vscale x 4 x i32> zeroinitializer
 ; CHECK-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %6 = shufflevector <vscale x 1 x i64> undef, <vscale x 1 x i64> undef, <vscale x 1 x i32> zeroinitializer
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %7 = shufflevector <vscale x 2 x i64> undef, <vscale x 2 x i64> undef, <vscale x 2 x i32> zeroinitializer
----------------
I am curious with this one. I would expect this case to be 1 too. How is different to the other ones?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124101



More information about the llvm-commits mailing list