[PATCH] Remove dangling BlockAddresses in GlobalDCE

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Wed Aug 20 14:07:40 PDT 2014


Without this patch, GlobalDCE won't properly clean up blockaddress references, leaving BBs ref counts without proper update. One way to test that such ref counts are updated is to expose the module to further optimizations that actually use this refcount; simplifycfg in this example.
Other passes need to be executed before GlobalDCE to trigger the removal of @foo.addrs.

http://reviews.llvm.org/D4932






More information about the llvm-commits mailing list