We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3436f7 commit b788e35Copy full SHA for b788e35
mlir/lib/Transforms/NormalizeMemRefs.cpp
@@ -92,8 +92,8 @@ void NormalizeMemRefs::runOnOperation() {
92
/// are satisfied will the value become a candidate for replacement.
93
/// TODO: Extend this for DimOps.
94
static bool isMemRefNormalizable(Value::user_range opUsers) {
95
- return !llvm::any_of(opUsers, [](Operation *op) {
96
- return !op->hasTrait<OpTrait::MemRefsNormalizable>();
+ return llvm::all_of(opUsers, [](Operation *op) {
+ return op->hasTrait<OpTrait::MemRefsNormalizable>();
97
});
98
}
99
0 commit comments