optimize LICM::hoist to use moveBefore. Correct its updating
authorChris Lattner <sabre@nondot.org>
Sun, 29 Aug 2010 18:03:33 +0000 (18:03 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Aug 2010 18:03:33 +0000 (18:03 +0000)
commitbb07ed3bb5db1b610362628ceb31349667c491c2
treee6b162958d5b3f640cba62862c6b313de98af720
parent98917503c702e16f35ccdec3f6b4c48e5c4759ac
optimize LICM::hoist to use moveBefore.  Correct its updating
of AST to remove the hoisted instruction from the AST, since it
is no longer in the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112448 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LICM.cpp