diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-16 05:28:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-16 05:28:59 +0000 |
commit | 192228edb1c08ca11da2df959072bcaa99eacd63 (patch) | |
tree | cdc7988daef8b656c8d663b006be839b60c8b18e /lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | |
parent | df55fea807835bc23a2879fbf7f7a8bd53de8256 (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