[llvm] [DAGCombiner] Combine vp.strided.store with unit stride to vp.store (PR #66774)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 07:51:33 PDT 2023


================
@@ -11872,6 +11873,21 @@ SDValue DAGCombiner::visitMSTORE(SDNode *N) {
   return SDValue();
 }
 
+SDValue DAGCombiner::visitVP_STRIDED_STORE(SDNode *N) {
+  auto *SST = cast<VPStridedStoreSDNode>(N);
+  EVT EltVT = SST->getValue().getValueType().getVectorElementType();
+  // Combine strided loads with unit-stride to a regular load.
----------------
preames wrote:

"regular" load - a) same comment as load patch, and b) it's not a load (two occurrences in line).

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


More information about the llvm-commits mailing list