This is an archive of the discontinued LLVM Phabricator instance.

[mlir][affine][NFC] Extract core functionality of `canonicalizeMinMaxOp`
ClosedPublic

Authored by springerm on Jan 4 2023, 1:57 AM.

Details

Summary

Move code from SCF to Affine: Add a new helper function simplifyConstrainedMinMaxOp to Affine/Analysis/Utils.h. canonicalizeMinMaxOp was originally designed for loop peeling, but it is not SCF-specific and can be used to simplify any affine.min/max ops.

Various functions in SCF/Transforms are simplified by dropping unnecessary parameters.

Diff Detail

Event Timeline

springerm created this revision.Jan 4 2023, 1:57 AM
springerm requested review of this revision.Jan 4 2023, 1:57 AM
Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache accepted this revision.Jan 4 2023, 2:14 AM
This revision is now accepted and ready to land.Jan 4 2023, 2:14 AM