commit | 3e883734fab4da8413f16957dd116d4ffd9d3223 | [log] [tgz] |
---|---|---|
author | Nadav Rotem <nrotem@apple.com> | Tue Aug 14 05:19:07 2012 +0000 |
committer | Nadav Rotem <nrotem@apple.com> | Tue Aug 14 05:19:07 2012 +0000 |
tree | 3165c1b0a62a477da5ca386e10ee5dc97d752da3 | |
parent | 443c9ed7688e66c55c43819a75be681574b291de [diff] |
During the CodeGenPrepare we often lower intrinsics (such as objsize) and allow some optimizations to turn conditional branches into unconditional. This commit adds a simple control-flow optimization which merges two consecutive basic blocks which are connected by a single edge. This allows the codegen to operate on larger basic blocks. rdar://11973998 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161852 91177308-0d34-0410-b5e6-96231b3b80d8