OSDN Git Service

Enable hoisting of loads from constant memory by default. In cases where
authorDan Gohman <gohman@apple.com>
Thu, 19 Nov 2009 19:00:10 +0000 (19:00 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 19 Nov 2009 19:00:10 +0000 (19:00 +0000)
commitdab249b3b762cff0ff16069b3233e4c885e75347
tree03861743b53beec3c6cacf798f7bbfb46c0ddb78
parent58ce7acb4f87c3caf0f473f89220950919fba7bc
Enable hoisting of loads from constant memory by default. In cases where
they are lowered to instruction sequences more complex than a simple
load, such that CodeGen cannot rematerialize them, a reload from a
spill slot is likely to be cheaper than the complex sequence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89374 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LICM.cpp
test/Transforms/LICM/2008-07-22-LoadGlobalConstant.ll