[llvm] [RISCV][TTI] Add shuffle costing for masked slide lowering (PR #128537)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 25 06:08:33 PST 2025


================
@@ -203,6 +203,15 @@ bool getShuffleDemandedElts(int SrcWidth, ArrayRef<int> Mask,
                             const APInt &DemandedElts, APInt &DemandedLHS,
                             APInt &DemandedRHS, bool AllowUndefElts = false);
 
+/// Does this shuffle mask represent either one slide shuffle or a pair of
+/// two slide shuffles, combined with a select on some constant vector mask?
+/// A slide is a shuffle masks which shifts some set of elements up or down
----------------
lukel97 wrote:

```suggestion
/// A slide is a shuffle mask which shifts some set of elements up or down
```

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


More information about the llvm-commits mailing list