[llvm] [RISCV][CostModel] Updates reduction and shuffle cost (PR #77342)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 12:57:39 PST 2024


================
@@ -482,11 +481,10 @@ InstructionCost RISCVTTIImpl::getShuffleCost(TTI::ShuffleKind Kind,
       //   vmsne.vi  v0, v8, 0
 
       return LT.first *
-             (TLI->getLMULCost(LT.second) + // FIXME: this should be 1 for andi
----------------
preames wrote:

It looks like you're correct here.  There are other cases which create SK_Broadcast, but from what I can tell, all are consistent with the splat index always being zero.  

https://github.com/llvm/llvm-project/pull/77342


More information about the llvm-commits mailing list