While hoisting an instruction, update alias info set tracker.
authorDevang Patel <dpatel@apple.com>
Thu, 26 Mar 2009 23:48:52 +0000 (23:48 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 26 Mar 2009 23:48:52 +0000 (23:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67798 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LICM.cpp

index 102146945a0bb7bc56dadaf700cf8b7d1feeab91..62896157d5bc10b85cb4230095f76219343bafe2 100644 (file)
@@ -605,6 +605,7 @@ void LICM::hoist(Instruction &I) {
 
   // Remove the instruction from its current basic block... but don't delete the
   // instruction.
+  CurAST->deleteValue(&I);
   I.removeFromParent();
 
   // Insert the new node in Preheader, before the terminator.