Skip to content

Commit

Permalink
Fix late comment review for #102038 (#102869)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseros authored Aug 12, 2024
1 parent 670d208 commit a0241e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlir/lib/Transforms/Utils/RegionUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,8 @@ static LogicalResult dropRedundantArguments(RewriterBase &rewriter,

// Add any nested regions to the worklist.
for (Block &block : *region) {
anyChanged = succeeded(dropRedundantArguments(rewriter, block));
anyChanged =
succeeded(dropRedundantArguments(rewriter, block)) || anyChanged;

for (Operation &op : block)
for (Region &nestedRegion : op.getRegions())
Expand Down

0 comments on commit a0241e7

Please sign in to comment.