mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
Apply clang-tidy fixes for readability-simplify-boolean-expr to MLIR NormalizeMemRefs.cpp (NFC)
This commit is contained in:
@@ -93,9 +93,7 @@ void NormalizeMemRefs::runOnOperation() {
|
||||
/// TODO: Extend this for DimOps.
|
||||
static bool isMemRefNormalizable(Value::user_range opUsers) {
|
||||
return !llvm::any_of(opUsers, [](Operation *op) {
|
||||
if (op->hasTrait<OpTrait::MemRefsNormalizable>())
|
||||
return false;
|
||||
return true;
|
||||
return !op->hasTrait<OpTrait::MemRefsNormalizable>();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user