summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Local.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
commitd55581ded8454dc023acc4020497d403e191dff7 (patch)
treeafefe709bb96bc4903b52c75094b741fd77a85a9 /llvm/lib/Transforms/Utils/Local.cpp
parent572756ac1109b3aea5f57ef354827e7ea4b5b5ec (diff)
downloadbcm5719-llvm-d55581ded8454dc023acc4020497d403e191dff7.tar.gz
bcm5719-llvm-d55581ded8454dc023acc4020497d403e191dff7.zip
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. llvm-svn: 123568
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud