This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Shape] Fix `shape_of` lowering to `scf`
ClosedPublic

Authored by frgossen on Jul 15 2020, 7:24 AM.

Details

Summary

The use of the scf.for callback builder does not allow for a rollback of the
emitted conversions. Instead, we populate the loop body through the conversion
rewriter directly.
See https://bugs.llvm.org/show_bug.cgi?id=46731

Diff Detail

Event Timeline

frgossen created this revision.Jul 15 2020, 7:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 15 2020, 7:24 AM
frgossen edited the summary of this revision. (Show Details)Jul 15 2020, 8:30 AM
herhut accepted this revision.Jul 15 2020, 8:33 AM
This revision is now accepted and ready to land.Jul 15 2020, 8:33 AM
This revision was automatically updated to reflect the committed changes.