summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-06 01:10:22 +0000
committerChris Lattner <sabre@nondot.org>2010-09-06 01:10:22 +0000
commitb01c24a94595f8854a12c9982a2b589106e7251e (patch)
tree96c24037b82cee64b53691a78d50d970dee15dce /llvm/lib/Analysis/ProfileInfoLoaderPass.cpp
parentda24b9a49a047d62f9c505766747d38c1728fe04 (diff)
downloadbcm5719-llvm-b01c24a94595f8854a12c9982a2b589106e7251e.tar.gz
bcm5719-llvm-b01c24a94595f8854a12c9982a2b589106e7251e.zip
Teach loop rotate to hoist trivially invariant instructions
in the duplicated block instead of duplicating them. Duplicating them into the end of the loop and the preheader means that we got a phi node in the header of the loop, which prevented LICM from hoisting them. GVN would usually come around later and merge the duplicated instructions so we'd get reasonable output... except that anything dependent on the shoulda-been-hoisted value can't be hoisted. In PR5319 (which this fixes), a memory value didn't get promoted. llvm-svn: 113134
Diffstat (limited to 'llvm/lib/Analysis/ProfileInfoLoaderPass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud