Skip to content

Commit b728f37

Browse files
[Analysis] Use llvm::set_is_subset (NFC) (#102766)
1 parent a417083 commit b728f37

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4146,9 +4146,7 @@ static bool impliesPoison(const SCEV *AssumedPoison, const SCEV *S) {
41464146

41474147
// Make sure that no matter which SCEV in PC1.MaybePoison is actually poison,
41484148
// it will also make S poison by being part of PC2.MaybePoison.
4149-
return all_of(PC1.MaybePoison, [&](const SCEVUnknown *S) {
4150-
return PC2.MaybePoison.contains(S);
4151-
});
4149+
return llvm::set_is_subset(PC1.MaybePoison, PC2.MaybePoison);
41524150
}
41534151

41544152
void ScalarEvolution::getPoisonGeneratingValues(

0 commit comments

Comments
 (0)