This is an archive of the discontinued LLVM Phabricator instance.

[mlir] support reductions in loop to std conversion
ClosedPublic

Authored by ftynse on Mar 3 2020, 4:22 AM.

Details

Summary

Introduce support for converting loop.for operations with loop-carried values
to a CFG in the standard dialect. This is achieved by passing loop-carried
values as block arguments to the loop condition block. This block dominates
both the loop body and the block immediately following the loop, so the
arguments of this block are remain visible there.

Diff Detail

Event Timeline

ftynse created this revision.Mar 3 2020, 4:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2020, 4:22 AM
ftynse added a subscriber: poechsel.Mar 3 2020, 4:23 AM
nicolasvasilache accepted this revision.Mar 3 2020, 8:48 AM

Great, thanks Alex!

This revision is now accepted and ready to land.Mar 3 2020, 8:48 AM
This revision was automatically updated to reflect the committed changes.