This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Standard] Add canonicalization for collapsing pass through cond_br successors.
ClosedPublic

Authored by rriddle on Apr 22 2020, 3:45 PM.

Details

Summary

This revision adds support for the following canonicalization:

  cond_br %cond, ^bb1, ^bb2
^bb1
  br ^bbN(...)
^bb2
  br ^bbK(...)

  cond_br %cond, ^bbN(...), ^bbK(...)

Diff Detail

Event Timeline

rriddle created this revision.Apr 22 2020, 3:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2020, 3:45 PM
benvanik accepted this revision.Apr 22 2020, 6:27 PM
This revision is now accepted and ready to land.Apr 22 2020, 6:27 PM
This revision was automatically updated to reflect the committed changes.