[PATCH] D124772: [DAGCombine] Fold A + (B & ~A) to A | B
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 10:12:51 PDT 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:2842
+ return DAG.getNode(ISD::OR, DL, VT, N0, N1.getOperand(0));
+ }
+
----------------
Similar question to D124763 - can this be done in SelectionDAG::haveNoCommonBitsSet?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124772/new/
https://reviews.llvm.org/D124772
More information about the llvm-commits
mailing list