projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3436f7
)
[Transforms] Use all_of instead of any_of (NFC)
author
Kazu Hirata
<kazu@google.com>
Mon, 3 Jan 2022 06:53:09 +0000
(22:53 -0800)
committer
Kazu Hirata
<kazu@google.com>
Mon, 3 Jan 2022 06:53:09 +0000
(22:53 -0800)
mlir/lib/Transforms/NormalizeMemRefs.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Transforms/NormalizeMemRefs.cpp
b/mlir/lib/Transforms/NormalizeMemRefs.cpp
index
aaf1a57
..
b6f9d18
100644
(file)
--- a/
mlir/lib/Transforms/NormalizeMemRefs.cpp
+++ b/
mlir/lib/Transforms/NormalizeMemRefs.cpp
@@
-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>();
});
}