diff options
author | Manman Ren <mren@apple.com> | 2012-09-20 22:37:36 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-09-20 22:37:36 +0000 |
commit | 554da1a222eaeea71636700ca2b7dd931e81ade6 (patch) | |
tree | 867b1c2a0de8a793ea3ce06e9009a95c85e3423b /lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 2dad6b501b5148faef16b85cfea59d7462bad0fd (diff) |
SimplifyCFG: sink common codes from IF, ELSE blocks down to END block.
We already have HoistThenElseCodeToIf, this patch implements
SinkThenElseCodeToEnd. When END block has only two predecessors and each
predecessor terminates with unconditional branches, we compare instructions in
IF and ELSE blocks backwards and check whether we can sink the common
instructions down.
rdar://12191395
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
0 files changed, 0 insertions, 0 deletions