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

Liao Chunyu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 23:30:32 PDT 2022


liaolucy 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
----------------
rogfer01 wrote:
> I am curious with this one. I would expect this case to be 1 too. How is different to the other ones?
> I am curious with this one. I would expect this case to be 1 too. How is different to the other ones?

Actually, I just solved the crash problem. Cost is 1, it's ok for me


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