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

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


================
@@ -11959,6 +11960,22 @@ SDValue DAGCombiner::visitMLOAD(SDNode *N) {
   return SDValue();
 }
 
+SDValue DAGCombiner::visitVP_STRIDED_LOAD(SDNode *N) {
+  auto *SLD = cast<VPStridedLoadSDNode>(N);
+  EVT EltVT = SLD->getValueType(0).getVectorElementType();
+  // Combine strided loads with unit-stride to a regular load.
----------------
preames wrote:

Misleading comment - the result is a vp.load not a regular load. i.e. it is still predicated.

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


More information about the llvm-commits mailing list