[llvm] [IV][RISCV] Make the isDeInterleaveMask check the contents of shuffle (PR #185384)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 09:58:33 PDT 2026


================
@@ -209,15 +209,24 @@ FunctionPass *llvm::createInterleavedAccessPass() {
 ///     <1, 3, 5, 7>    (mask of index 1 to extract odd elements)
 static bool isDeInterleaveMask(ArrayRef<int> Mask, unsigned &Factor,
                                unsigned &Index, unsigned MaxFactor,
-                               unsigned NumLoadElements) {
+                               unsigned NumLoadElements,
+                               SmallVector<ShuffleVectorInst *, 4> Shuffles) {
----------------
topperc wrote:

Why are we passing this by value?

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


More information about the llvm-commits mailing list