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:
f19e90b
)
Apply clang-tidy fixes for llvm-else-after-return in SCF.cpp (NFC)
author
Mehdi Amini
<joker.eph@gmail.com>
Sun, 3 Apr 2022 23:18:19 +0000
(23:18 +0000)
committer
Mehdi Amini
<joker.eph@gmail.com>
Wed, 13 Apr 2022 23:14:44 +0000
(23:14 +0000)
mlir/lib/Dialect/SCF/SCF.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Dialect/SCF/SCF.cpp
b/mlir/lib/Dialect/SCF/SCF.cpp
index
3e5028f
..
f010bc6
100644
(file)
--- a/
mlir/lib/Dialect/SCF/SCF.cpp
+++ b/
mlir/lib/Dialect/SCF/SCF.cpp
@@
-1793,9
+1793,8
@@
struct CombineNestedIfs : public OpRewritePattern<IfOp> {
// If the then value is defined within the scf.if, bail.
if (tup.value().getParentRegion() == &op.getThenRegion()) {
return failure();
- } else {
- elseYieldsToUpgradeToSelect.push_back(tup.index());
}
+ elseYieldsToUpgradeToSelect.push_back(tup.index());
}
Location loc = op.getLoc();