mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
7fe1decf3a
commit
b8f69c65df
@ -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…
Reference in New Issue
Block a user