[PATCH] D77486: [MLIR][NFC] fix name operand -> op
Uday Bondhugula via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 4 23:58:17 PDT 2020
bondhugula updated this revision to Diff 255122.
bondhugula marked 2 inline comments as done.
bondhugula added a comment.
Rename op -> userOp
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77486/new/
https://reviews.llvm.org/D77486
Files:
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
Index: mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
===================================================================
--- mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
+++ mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
@@ -181,8 +181,8 @@
// Add all the users of the result to the worklist so we make sure
// to revisit them.
for (auto result : op->getResults())
- for (auto *operand : result.getUsers())
- addToWorklist(operand);
+ for (auto *userOp : result.getUsers())
+ addToWorklist(userOp);
notifyOperationRemoved(op);
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77486.255122.patch
Type: text/x-patch
Size: 648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200405/17422be0/attachment.bin>
More information about the llvm-commits
mailing list