commit | ee28e0fdd1955d9fe7acc05b3250ceee759ac3c6 | [log] [tgz] |
---|---|---|
author | Manman Ren <mren@apple.com> | Wed Jun 13 05:43:29 2012 +0000 |
committer | Manman Ren <mren@apple.com> | Wed Jun 13 05:43:29 2012 +0000 |
tree | 7e88f8e1466aedaf73e9643afdfb6a9e88400701 | |
parent | 764dc754fe52c3a61363fad341b68be397103668 [diff] |
SimplifyCFG: fold unconditional branch to its predecessor if profitable. This patch extends FoldBranchToCommonDest to fold unconditional branches. For unconditional branches, we fold them if it is easy to update the phi nodes in the common successors. rdar://10554090 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158392 91177308-0d34-0410-b5e6-96231b3b80d8