[PATCH] D63972: [CodeGen] Do the Simple Early Return in block-placement pass to optimize the blocks

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 12:40:19 PDT 2019


efriedma reopened this revision.
efriedma added a comment.
This revision is now accepted and ready to land.

You probably want `F->erase(TBB)`, which both removes TBB from the list of blocks in the function, and deallocates TBB.  I guess the empty block with no predecessors doesn't really matter much, in the long run, but easier to understand if the transform cleans up after itself properly.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63972/new/

https://reviews.llvm.org/D63972





More information about the llvm-commits mailing list