[Transforms] Use all_of instead of any_of (NFC)

This commit is contained in:
Kazu Hirata 2022-01-02 22:53:09 -08:00
parent a3436f7340
commit b788e352ab
1 changed files with 2 additions and 2 deletions

View File

@ -92,8 +92,8 @@ void NormalizeMemRefs::runOnOperation() {
/// are satisfied will the value become a candidate for replacement.
/// TODO: Extend this for DimOps.
static bool isMemRefNormalizable(Value::user_range opUsers) {
return !llvm::any_of(opUsers, [](Operation *op) {
return !op->hasTrait<OpTrait::MemRefsNormalizable>();
return llvm::all_of(opUsers, [](Operation *op) {
return op->hasTrait<OpTrait::MemRefsNormalizable>();
});
}