[Mlir-commits] [mlir] cc67389 - [MLIR][NFC] fix name operand -> userOp
Uday Bondhugula
llvmlistbot at llvm.org
Sun Apr 5 06:47:45 PDT 2020
Author: Uday Bondhugula
Date: 2020-04-05T19:17:15+05:30
New Revision: cc6738949de80544aa10847111b86585941ad01f
URL: https://github.com/llvm/llvm-project/commit/cc6738949de80544aa10847111b86585941ad01f
DIFF: https://github.com/llvm/llvm-project/commit/cc6738949de80544aa10847111b86585941ad01f.diff
LOG: [MLIR][NFC] fix name operand -> userOp
The wrong name was confusing to read. value.getUsers() yields
Operation *s.
Differential Revision: https://reviews.llvm.org/D77486
Added:
Modified:
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp b/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
index 2a5f3167d105..79b3db6433d0 100644
--- a/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
+++ b/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
@@ -179,8 +179,8 @@ bool GreedyPatternRewriteDriver::simplify(MutableArrayRef<Region> regions,
// 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);
};
More information about the Mlir-commits
mailing list