This is an archive of the discontinued LLVM Phabricator instance.

[mlir][affine] Canonicalize single value affine.min/max
ClosedPublic

Authored by Lewuathe on Jan 9 2023, 9:59 PM.

Details

Summary

Canonicalize identity affine.min/max to allow further optimization to follow the def-use chain of the given values. The reported issue is https://github.com/llvm/llvm-project/issues/59399.

Diff Detail

Event Timeline

Lewuathe created this revision.Jan 9 2023, 9:59 PM
Lewuathe requested review of this revision.Jan 9 2023, 9:59 PM
Lewuathe updated this revision to Diff 487678.Jan 9 2023, 10:00 PM

Add newline.

ftynse accepted this revision.Jan 10 2023, 2:04 AM
ftynse added inline comments.
mlir/test/Dialect/Affine/canonicalize.mlir
1234–1236

Nit: s/%min/%max.

This revision is now accepted and ready to land.Jan 10 2023, 2:04 AM
This revision was automatically updated to reflect the committed changes.