| commit | 93ab64916f67fd826d5aa18afe1629de739b716b | [log] [tgz] |
|---|---|---|
| author | Manman Ren <mren@apple.com> | Thu Sep 20 22:37:36 2012 +0000 |
| committer | Manman Ren <mren@apple.com> | Thu Sep 20 22:37:36 2012 +0000 |
| tree | bff20f7e839109338982f9653dfd5236a454a29a | |
| parent | b78aeed26e65c577b2b629e9163b21792016d43a [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 llvm-svn: 164325