[llvm] [DAGCombiner] Remove a hasOneUse check in visitAND (PR #115142)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 03:04:35 PST 2024


================
@@ -7095,8 +7095,7 @@ SDValue DAGCombiner::visitAND(SDNode *N) {
     // fold (and (masked_load) (splat_vec (x, ...))) to zext_masked_load
     auto *MLoad = dyn_cast<MaskedLoadSDNode>(N0);
     ConstantSDNode *Splat = isConstOrConstSplat(N1, true, true);
-    if (MLoad && MLoad->getExtensionType() == ISD::EXTLOAD && Splat &&
-        N1.hasOneUse()) {
----------------
david-arm wrote:

An extra instruction in multi_user_zext (mve-masked-load.ll) and two extra in sve_load_compare_store (sve-load-compare-store.ll)

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


More information about the llvm-commits mailing list