OSDN Git Service

Check to see if a two-entry PHI block can be simplified
authorDan Gohman <gohman@apple.com>
Tue, 11 Mar 2008 21:53:06 +0000 (21:53 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 11 Mar 2008 21:53:06 +0000 (21:53 +0000)
commit882d87d168374ce790621e9ad4d7304b9dff0d78
tree670229408774b0cdf7b29ce972e2c7245f2af23d
parenta8ab8938a724d4ced548103257281c871d0422bd
Check to see if a two-entry PHI block can be simplified
before trying to merge the block into its predecessors.
This allows two-entry-phi-return.ll to be simplified
into a single basic block.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48252 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/two-entry-phi-return.ll [new file with mode: 0644]