[all-commits] [llvm/llvm-project] 59bbc7: [GreedPatternRewriter] Preprocess constants while ...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Mar 31 12:12:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59bbc7a0851b6e0054bb3ed47df0958822f08880
      https://github.com/llvm/llvm-project/commit/59bbc7a0851b6e0054bb3ed47df0958822f08880
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-03-31 (Thu, 31 Mar 2022)

  Changed paths:
    M flang/test/Lower/host-associated.f90
    M mlir/include/mlir/Transforms/FoldUtils.h
    M mlir/lib/Transforms/Utils/FoldUtils.cpp
    M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
    M mlir/test/Conversion/VectorToSCF/vector-to-scf.mlir
    M mlir/test/Dialect/Async/async-parallel-for-num-worker-threads.mlir
    M mlir/test/Dialect/Linalg/detensorize_if.mlir
    M mlir/test/Dialect/Linalg/transform-patterns.mlir
    M mlir/test/Dialect/SparseTensor/dense.mlir
    M mlir/test/Dialect/SparseTensor/sparse_scalars.mlir
    M mlir/test/Dialect/Tensor/bufferize.mlir
    M mlir/test/Dialect/Tensor/split-padding.mlir
    M mlir/test/Transforms/test-operation-folder.mlir

  Log Message:
  -----------
  [GreedPatternRewriter] Preprocess constants while building worklist when not processing top down

This avoids accidentally reversing the order of constants during successive
application, e.g. when running the canonicalizer. This helps reduce the number
of iterations, and also avoids unnecessary changes to input IR.

Fixes #51892

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




More information about the All-commits mailing list