OSDN Git Service

fix some bugs (found by inspection) where LICM would not update
authorChris Lattner <sabre@nondot.org>
Sun, 29 Aug 2010 18:00:00 +0000 (18:00 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Aug 2010 18:00:00 +0000 (18:00 +0000)
commit98917503c702e16f35ccdec3f6b4c48e5c4759ac
tree3e468cc12cb1541a3b1758a96ab8da5b88edd7f1
parent4282e32712da220fd97177772e22ec1ee7e50af2
fix some bugs (found by inspection) where LICM would not update
LICM correctly.  When sinking an instruction, it should not add
entries for the sunk instruction to the AST, it should remove
the entry for the sunk instruction.  The blocks being sunk to
are not in the loop, so their instructions shouldn't be in the
AST (yet)!

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