Skip to content

Commit c5a17e6

Browse files
authored
[DAGCombiner] Use APInt::isSubsetOf. NFC (#142029)
1 parent 6a47241 commit c5a17e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6813,7 +6813,7 @@ bool DAGCombiner::SearchForAndLoads(SDNode *N,
68136813
// Some constants may need fixing up later if they are too large.
68146814
if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
68156815
if ((N->getOpcode() == ISD::OR || N->getOpcode() == ISD::XOR) &&
6816-
(Mask->getAPIntValue() & C->getAPIntValue()) != C->getAPIntValue())
6816+
!C->getAPIntValue().isSubsetOf(Mask->getAPIntValue()))
68176817
NodesWithConsts.insert(N);
68186818
continue;
68196819
}

0 commit comments

Comments
 (0)