[all-commits] [llvm/llvm-project] ff87c4: [mlir] Fix exiting OpPatternRewriteDriver::simplif...

Christian Sigg via All-commits all-commits at lists.llvm.org
Fri Oct 23 02:10:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ff87c4d3e773ae89ae62af20941339f0f252dafd
      https://github.com/llvm/llvm-project/commit/ff87c4d3e773ae89ae62af20941339f0f252dafd
  Author: Christian Sigg <csigg at google.com>
  Date:   2020-10-23 (Fri, 23 Oct 2020)

  Changed paths:
    M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp

  Log Message:
  -----------
  [mlir] Fix exiting OpPatternRewriteDriver::simplifyLocally after first iteration that didn't change the op.

Before this change, we would run `maxIterations` if the first iteration changed the op.
After this change, we exit the loop as soon as an iteration hasn't changed the op.
Assuming that we have reached a fixed point when an iteration doesn't change the op, this doesn't affect correctness.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D89981




More information about the All-commits mailing list