This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Add lowering from `loop.if` to `spv.selection`
ClosedPublic

Authored by denis13 on Jan 16 2020, 4:44 AM.

Details

Summary

When lowering loop.if to spv.selection we explicitly create
a selection header block before the control flow diverges and a
merge block where control flow subsequently converges.

Diff Detail

Event Timeline

denis13 created this revision.Jan 16 2020, 4:44 AM

Unit tests: pass. 61885 tests passed, 0 failed and 782 were skipped.

clang-tidy: unknown.

clang-format: pass.

Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

antiagainst accepted this revision.Jan 17 2020, 8:51 AM

Awesome! Thanks for the patch!!

This revision is now accepted and ready to land.Jan 17 2020, 8:51 AM
This revision was automatically updated to reflect the committed changes.