rename a function to indicate that it checks for profitability as well
[oota-llvm.git] / lib / Transforms / Scalar / ADCE.cpp
index 31e6bef7c47a2ddc8f37cf2c5a03f2fb2eea766f..bdf8029b18ef4694a8f8dd952ccd945497ec08da 100644 (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() {