While hoisting an instruction, update alias info set tracker.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67798 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2009-03-26 23:48:52 +00:00
parent e568f64131
commit fafd98b23e

View 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.