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

Uday Bondhugula via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 4 22:23:01 PDT 2020


bondhugula created this revision.
bondhugula added reviewers: ftynse, mehdi_amini, rriddle.
Herald added subscribers: llvm-commits, grosul1, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar.
Herald added a project: LLVM.
bondhugula added a child revision: D77487: [MLIR] Introduce applyOpPatternsAndFold for op local rewrites.

The wrong name was confusing to read. value.getUsers() yields
Operation *s.

Depends on D77485 <https://reviews.llvm.org/D77485>.


Repository:
  rG LLVM Github Monorepo

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 *op : result.getUsers())
+            addToWorklist(op);
 
         notifyOperationRemoved(op);
       };


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77486.255115.patch
Type: text/x-patch
Size: 640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200405/d09f5221/attachment.bin>


More information about the llvm-commits mailing list