From fe7c0492a066a2bb5e91ef1a6b2ed413678abbcd Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 26 Mar 2009 23:48:52 +0000 Subject: [PATCH] While hoisting an instruction, update alias info set tracker. llvm-svn: 67798 --- llvm/lib/Transforms/Scalar/LICM.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 102146945a0b..62896157d5bc 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -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.