aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-16 05:28:59 +0000
committerChris Lattner <sabre@nondot.org>2011-01-16 05:28:59 +0000
commit192228edb1c08ca11da2df959072bcaa99eacd63 (patch)
treecdc7988daef8b656c8d663b006be839b60c8b18e /lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
parentdf55fea807835bc23a2879fbf7f7a8bd53de8256 (diff)
enhance FoldOpIntoPhi in instcombine to try harder when a phi has
multiple uses. In some cases, all the uses are the same operation, so instcombine can go ahead and promote the phi. In the testcase this pushes an add out of the loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/UnifyFunctionExitNodes.cpp')
0 files changed, 0 insertions, 0 deletions