[SimplifyCFG] Merge together cleanuppads
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 20 Feb 2016 01:07:45 +0000 (01:07 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 20 Feb 2016 01:07:45 +0000 (01:07 +0000)
commit1efa23ddab54b875e73e4d73a81cf72cad63d3f9
treecd7a20473d14623ba1781822818402c88c13a8ba
parent26cac3af0b83c59a201d91c96e2810e3b2554704
[SimplifyCFG] Merge together cleanuppads

Cleanuppads may be merged together if one is the only predecessor of the
other in which case a simple transform can be performed: replace the
a cleanupret with a branch and remove an unnecessary cleanuppad.

Differential Revision: http://reviews.llvm.org/D17459

llvm-svn: 261390
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/merge-cleanuppads.ll [new file with mode: 0644]