Put the LICM of constant GlobalVariables, introduced in r53945, under a
authorDan Gohman <gohman@apple.com>
Thu, 24 Jul 2008 23:57:25 +0000 (23:57 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 24 Jul 2008 23:57:25 +0000 (23:57 +0000)
commit3eee6542f5c65dce299361fa5435340513cf3fe4
tree55d9ae6062c7004acf53c75fee45371cb313db70
parent5444c307239b349af7a2bd7af2406a6c1709b7f1
Put the LICM of constant GlobalVariables, introduced in r53945, under a
command-line option, and disable it by default. It introduced performance
regressions because CodeGen is currently not able to remat such loads.

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