Skip to content

Commit 9540bad

Browse files
committed
!any_of -> none_of
1 parent fd76626 commit 9540bad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2779,11 +2779,11 @@ SDValue DAGCombiner::visitPTRADD(SDNode *N) {
27792779
// This should be done late, after legalization, so that it doesn't block
27802780
// other ptradd combines that could enable more offset folding.
27812781
if (LegalOperations && DAG.haveNoCommonBitsSet(N0, N1)) {
2782-
bool TransformCanBreakAddrMode = any_of(N->users(), [&](SDNode *User) {
2782+
bool TransformCannotBreakAddrMode = none_of(N->users(), [&](SDNode *User) {
27832783
return canFoldInAddressingMode(N, User, DAG, TLI);
27842784
});
27852785

2786-
if (!TransformCanBreakAddrMode)
2786+
if (TransformCannotBreakAddrMode)
27872787
return DAG.getNode(ISD::OR, DL, PtrVT, N0, N1, SDNodeFlags::Disjoint);
27882788
}
27892789

0 commit comments

Comments
 (0)