[llvm] [X86] EltsFromConsecutiveLoads - handle trunc(wideload()) patterns (PR #199371)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 5 08:13:11 PDT 2026
================
@@ -8005,6 +8005,145 @@ static SDValue EltsFromConsecutiveLoads(EVT VT, ArrayRef<SDValue> Elts,
}
}
+ // STRIDED - element loads at a uniform byte stride larger than the element
+ // size are folded into wide load(s) + vector truncation.
+ unsigned LoadCount = LoadMask.popcount();
----------------
RKSimon wrote:
yes, please lets go with the simpler LoadMask.isAllOnes() case for now
https://github.com/llvm/llvm-project/pull/199371
More information about the llvm-commits
mailing list