[PATCH] D46053: [Local] Refactor llvm::removeUnreachableBlocks

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 25 05:22:19 PDT 2018


bjope created this revision.

Refactored llvm::removeUnreachableBlocks, including the
markAliveBlocks helper. The part in markAliveBlocks that
examines instructions inside a basic block, and that can
change instructions to unreachable, was factored out to
a new rewriteUnreachableInstrs helper.

Also added a new boolean parameter to removeUnreachableBlocks
to be able to skip the rewriteUnreachableInstrs part.


Repository:
  rL LLVM

https://reviews.llvm.org/D46053

Files:
  include/llvm/Analysis/Utils/Local.h
  lib/Transforms/Utils/Local.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46053.143907.patch
Type: text/x-patch
Size: 14760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180425/8cf19ef3/attachment.bin>


More information about the llvm-commits mailing list