[all-commits] [llvm/llvm-project] ee1bf1: [mlir][SCF] Further simplify affine maps during `f...

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed Nov 24 19:49:20 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee1bf186723abb933b2c337e589c5958167f3cbe
      https://github.com/llvm/llvm-project/commit/ee1bf186723abb933b2c337e589c5958167f3cbe
  Author: Matthias Springer <springerm at google.com>
  Date:   2021-11-25 (Thu, 25 Nov 2021)

  Changed paths:
    M mlir/include/mlir/Analysis/AffineStructures.h
    M mlir/lib/Analysis/AffineStructures.cpp
    M mlir/lib/Dialect/SCF/Transforms/LoopSpecialization.cpp
    M mlir/test/Dialect/SCF/for-loop-canonicalization.mlir

  Log Message:
  -----------
  [mlir][SCF] Further simplify affine maps during `for-loop-canonicalization`

* Implement `FlatAffineConstraints::getConstantBound(EQ)`.
* Inject a simpler constraint for loops that have at most 1 iteration.
* Taking into account constant EQ bounds of FlatAffineConstraint dims/symbols during canonicalization of the resulting affine map in `canonicalizeMinMaxOp`.

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




More information about the All-commits mailing list