mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 14:16:59 +00:00
Let instcombiner remove redundant dbg intrinsics.
llvm-svn: 59658
This commit is contained in:
parent
cd2e68c069
commit
79a342d7d3
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user