"Allow LICM to sink or lift loads from constant memory. Also add a test
authorChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2008 05:06:28 +0000 (05:06 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2008 05:06:28 +0000 (05:06 +0000)
commit967948b4e25cae3de68f38fddaa75d838e676dec
treed4a991f40c7367570d36eb6fbd90abaea879d68a
parenta9173801caf73613d3fa07b1094b5539d9223953
"Allow LICM to sink or lift loads from constant memory. Also add a test
case for this.

This allows instructions like loads from global variables declared to
be constant to be moved out of loops."

Patch by Stefanus Du Toit!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53945 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LICM.cpp
test/Transforms/LICM/2008-07-22-LoadGlobalConstant.ll [new file with mode: 0644]