Cleanup debug info. assocated with deleted instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2008-11-11 00:54:10 +00:00
parent 780c38d84f
commit 35275f499a

View File

@ -26,7 +26,7 @@
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Transforms/Utils/DbgInfoUtils.h"
using namespace llvm;
@ -89,7 +89,12 @@ bool ADCE::runOnFunction(Function& F) {
(*I)->eraseFromParent();
}
return !worklist.empty();
if (!worklist.empty()) {
RemoveDeadDbgIntrinsics(F);
return true;
}
return false;
}
FunctionPass *llvm::createAggressiveDCEPass() {