Let instcombiner remove redundant dbg intrinsics.

llvm-svn: 59658
This commit is contained in:
Devang Patel 2008-11-19 18:59:41 +00:00
parent cd2e68c069
commit 79a342d7d3

View File

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