This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Toy tutorial: insert terminators at the end of the loop during rewrite
ClosedPublic

Authored by ftynse on May 18 2020, 9:06 AM.

Details

Summary

When creating temporary scf.for loops in toy.print lowering, the block
insertion point was erronously set up to the beginning of the block rather than
to its end, contradicting the comment just above the insertion point change.
The code was nevertheless operational because scf.for was setting up its
scf.yield terminator in an opaque to the pattern rewriting infrastructure
way. Now that it is about to change, the problem would have been exposed and
lead to conversion failures.

Diff Detail

Event Timeline

ftynse created this revision.May 18 2020, 9:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2020, 9:06 AM
nicolasvasilache accepted this revision.May 18 2020, 9:43 AM
This revision is now accepted and ready to land.May 18 2020, 9:43 AM
This revision was automatically updated to reflect the committed changes.