[PATCH] D77486: [MLIR][NFC] fix name operand -> op

Uday Bondhugula via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 5 06:56:21 PDT 2020


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
bondhugula marked an inline comment as done.
Closed by commit rGcc6738949de8: [MLIR][NFC] fix name operand -> userOp (authored by bondhugula).

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
@@ -179,8 +179,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.255157.patch
Type: text/x-patch
Size: 648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200405/e0aef9cc/attachment.bin>


More information about the llvm-commits mailing list