[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:03:52 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:
If I add that check it causes regression in CodeGen/AArch64/sve-load-compare-store.ll and CodeGen/Thumb2/mve-masked-load.ll
https://github.com/llvm/llvm-project/pull/115142
More information about the llvm-commits
mailing list