diff options
author | Manman Ren <mren@apple.com> | 2012-06-13 05:43:29 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-06-13 05:43:29 +0000 |
commit | d33f4efbfdef6ffccf212ab3e40a7673589085fd (patch) | |
tree | 34b882ee4de7fd72a9b3fd1335052664df03b782 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0948d93b7fdd571236536eff218aaadfaac5558e (diff) | |
download | bcm5719-llvm-d33f4efbfdef6ffccf212ab3e40a7673589085fd.tar.gz bcm5719-llvm-d33f4efbfdef6ffccf212ab3e40a7673589085fd.zip |
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
llvm-svn: 158392
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions