This is an archive of the discontinued LLVM Phabricator instance.

[mlir][SCF] Further simplify affine maps during `for-loop-canonicalization`
ClosedPublic

Authored by springerm on Feb 7 2022, 9:24 AM.

Details

Summary
  • 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.

Diff Detail

Event Timeline

springerm created this revision.Feb 7 2022, 9:24 AM
springerm requested review of this revision.Feb 7 2022, 9:24 AM
antiagainst accepted this revision.Feb 7 2022, 9:27 AM
This revision is now accepted and ready to land.Feb 7 2022, 9:27 AM
This revision was landed with ongoing or failed builds.Feb 7 2022, 9:40 AM
This revision was automatically updated to reflect the committed changes.