[PATCH] D132992: [RISCV][COST] Improve cost of select

LiqinWeng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 30 21:54:15 PDT 2022


Miss_Grape added inline comments.


================
Comment at: llvm/test/Analysis/CostModel/RISCV/rvv-select.ll:27
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %19 = select <vscale x 32 x i1> undef, <vscale x 32 x i1> undef, <vscale x 32 x i1> undef
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %20 = select i1 undef, i8 undef, i8 undef
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %21 = select i1 undef, <1 x i8> undef, <1 x i8> undef
----------------
Only support zbb will get 1


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132992



More information about the llvm-commits mailing list