Skip to content

Commit 72b3fb8

Browse files
committed
!any_of -> none_of
1 parent a21320e commit 72b3fb8

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
@@ -2772,11 +2772,11 @@ SDValue DAGCombiner::visitPTRADD(SDNode *N) {
27722772
// This should be done late, after legalization, so that it doesn't block
27732773
// other ptradd combines that could enable more offset folding.
27742774
if (LegalOperations && DAG.haveNoCommonBitsSet(N0, N1)) {
2775-
bool TransformCanBreakAddrMode = any_of(N->users(), [&](SDNode *User) {
2775+
bool TransformCannotBreakAddrMode = none_of(N->users(), [&](SDNode *User) {
27762776
return canFoldInAddressingMode(N, User, DAG, TLI);
27772777
});
27782778

2779-
if (!TransformCanBreakAddrMode)
2779+
if (TransformCannotBreakAddrMode)
27802780
return DAG.getNode(ISD::OR, DL, PtrVT, N0, N1, SDNodeFlags::Disjoint);
27812781
}
27822782

0 commit comments

Comments
 (0)