This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add PatternRewriter::mergeBlockBefore() to merge a block in the middle of another block.
ClosedPublic

Authored by jurahul on Aug 19 2020, 3:47 PM.

Details

Summary
  • This utility to merge a block into anywhere into another one can help inline single block regions into other blocks.
  • Modified patterns test to use the new function.

Diff Detail

Event Timeline

jurahul created this revision.Aug 19 2020, 3:47 PM
Herald added a project: Restricted Project. · View Herald Transcript
jurahul requested review of this revision.Aug 19 2020, 3:47 PM
rriddle accepted this revision.Aug 19 2020, 3:51 PM

Thanks!

This revision is now accepted and ready to land.Aug 19 2020, 3:51 PM