[all-commits] [llvm/llvm-project] b596ec: [mlir] Toy tutorial: avoid erasing and then re-cre...

ftynse via All-commits all-commits at lists.llvm.org
Tue Jun 2 03:54:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b596ecdd574e3ec717f71950370d2f58ae44296f
      https://github.com/llvm/llvm-project/commit/b596ecdd574e3ec717f71950370d2f58ae44296f
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-06-02 (Tue, 02 Jun 2020)

  Changed paths:
    M mlir/examples/toy/Ch5/mlir/LowerToAffineLoops.cpp
    M mlir/examples/toy/Ch6/mlir/LowerToAffineLoops.cpp
    M mlir/examples/toy/Ch7/mlir/LowerToAffineLoops.cpp

  Log Message:
  -----------
  [mlir] Toy tutorial: avoid erasing and then re-creating loop terminators

The lower-to-affine-loops pass in chapters 5-7 of the Toy tutorial has
been creating affine loops, erasing their terminator and creating it
anew using a PatternRewriter instance to work around the fact that
implicit terminators were created without notifying the rewriter. Now
that has been fixed in 3ccf4a5bd109, remove the code erasing and
re-creating the terminators and rely on the default ones.




More information about the All-commits mailing list