Let instcombiner remove redundant dbg intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2008-11-19 18:59:41 +00:00
parent 7fe1decf3a
commit b8f69c65df

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() {