Page MenuHomePhabricator

[mlir] Add for loop specialization

Authored by herhut on Fri, Jun 19, 7:25 AM.



We already has a parallel loop specialization pass that is used to
enable unrolling and consecutive vectorization by rewriting loops
whose bound is defined as a min of a constant and a dynamic value
into a loop with static bound (the constant) and the minimum as
bound, wrapped into a conditional to dispatch between the two.
This adds the same rewriting for for loops.

Diff Detail

Event Timeline

herhut created this revision.Fri, Jun 19, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptFri, Jun 19, 7:25 AM
herhut updated this revision to Diff 272066.Fri, Jun 19, 7:28 AM

Add missing pieces...

herhut updated this revision to Diff 272070.Fri, Jun 19, 7:34 AM


Harbormaster completed remote builds in B61026: Diff 272070.
rriddle added inline comments.Fri, Jun 19, 11:08 AM

nit: Spell out the type here.

ftynse accepted this revision.Mon, Jun 22, 12:52 AM
ftynse added inline comments.

Nit: can we take the first 'for' into single quotes for improved readability?

This revision is now accepted and ready to land.Mon, Jun 22, 12:52 AM
herhut updated this revision to Diff 272344.Mon, Jun 22, 1:14 AM
herhut marked 2 inline comments as done.

comments + rebase

Review comments...

This revision was automatically updated to reflect the committed changes.