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

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Feb 7 09:40:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9aa74347d5ad34ecaa990bd19fcffe0c7fbb8256
      https://github.com/llvm/llvm-project/commit/9aa74347d5ad34ecaa990bd19fcffe0c7fbb8256
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M mlir/include/mlir/Analysis/Presburger/IntegerPolyhedron.h
    M mlir/lib/Analysis/Presburger/IntegerPolyhedron.cpp
    M mlir/lib/Dialect/SCF/Utils/AffineCanonicalizationUtils.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/D119153




More information about the All-commits mailing list