[llvm] [RISCV][CostModel] Updates reduction and shuffle cost (PR #77342)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 20:02:55 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
----------------
lukel97 wrote:
To chime in here, it's defined in TargetTransformInfo.h as being a broadcast of element zero:
```c++
enum ShuffleKind {
SK_Broadcast, ///< Broadcast element 0 to all other elements.
```
https://github.com/llvm/llvm-project/pull/77342
More information about the llvm-commits
mailing list