This is an archive of the discontinued LLVM Phabricator instance.

[mlir][scf] Loop peeling: Use scf.for for partial iteration
ClosedPublic

Authored by springerm on Sep 9 2021, 10:38 PM.

Details

Summary

Generate an scf.for instead of an scf.if for the partial iteration. This is for consistency reasons: The peeling of linalg.tiled_loop also uses another loop for the partial iteration.

Note: Canonicalizations patterns may rewrite partial iterations to scf.if afterwards.

Diff Detail

Event Timeline

springerm created this revision.Sep 9 2021, 10:38 PM
springerm requested review of this revision.Sep 9 2021, 10:38 PM

Nice!

Also just to confirm, this allows composition with comprehensive-bufferize out of the box, right ?

This revision is now accepted and ready to land.Sep 10 2021, 12:55 AM

Nice!

Also just to confirm, this allows composition with comprehensive-bufferize out of the box, right ?

Yes, it will!