[PATCH] D86789: [DAGCombiner] Fold an AND of a masked load into a zext_masked_load

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 1 08:00:34 PDT 2020


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM with one minor



================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:5289
+    MaskedLoadSDNode *MLoad = dyn_cast<MaskedLoadSDNode>(N0);
+    BuildVectorSDNode *BVec = dyn_cast<BuildVectorSDNode>(N1);
+    if (MLoad && BVec && MLoad->getExtensionType() == ISD::EXTLOAD &&
----------------
(style) use auto *


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86789/new/

https://reviews.llvm.org/D86789



More information about the llvm-commits mailing list