File tree Expand file tree Collapse file tree 5 files changed +0
-43
lines changed Expand file tree Collapse file tree 5 files changed +0
-43
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,6 @@ void initializePseudoProbeInserterPass(PassRegistry &);
250
250
void initializeRAGreedyPass (PassRegistry&);
251
251
void initializeReachingDefAnalysisPass (PassRegistry&);
252
252
void initializeReassociateLegacyPassPass (PassRegistry&);
253
- void initializeRedundantDbgInstEliminationPass (PassRegistry&);
254
253
void initializeRegAllocEvictionAdvisorAnalysisPass (PassRegistry &);
255
254
void initializeRegAllocFastPass (PassRegistry&);
256
255
void initializeRegAllocPriorityAdvisorAnalysisPass (PassRegistry &);
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ namespace {
102
102
(void )llvm::createPostDomOnlyViewerWrapperPassPass ();
103
103
(void )llvm::createPostDomViewerWrapperPassPass ();
104
104
(void ) llvm::createReassociatePass ();
105
- (void ) llvm::createRedundantDbgInstEliminationPass ();
106
105
(void ) llvm::createRegionInfoPass ();
107
106
(void ) llvm::createRegionOnlyPrinterPass ();
108
107
(void ) llvm::createRegionOnlyViewerPass ();
Original file line number Diff line number Diff line change @@ -23,13 +23,6 @@ class Function;
23
23
class FunctionPass ;
24
24
class Pass ;
25
25
26
- // ===----------------------------------------------------------------------===//
27
- //
28
- // RedundantDbgInstElimination - This pass removes redundant dbg intrinsics
29
- // without modifying the CFG of the function. It is a FunctionPass.
30
- //
31
- Pass *createRedundantDbgInstEliminationPass ();
32
-
33
26
// ===----------------------------------------------------------------------===//
34
27
//
35
28
// DeadCodeElimination - This pass is more powerful than DeadInstElimination,
Original file line number Diff line number Diff line change @@ -36,39 +36,6 @@ STATISTIC(DCEEliminated, "Number of insts removed");
36
36
DEBUG_COUNTER (DCECounter, " dce-transform" ,
37
37
" Controls which instructions are eliminated" );
38
38
39
- // ===--------------------------------------------------------------------===//
40
- // RedundantDbgInstElimination pass implementation
41
- //
42
-
43
- namespace {
44
- struct RedundantDbgInstElimination : public FunctionPass {
45
- static char ID; // Pass identification, replacement for typeid
46
- RedundantDbgInstElimination () : FunctionPass(ID) {
47
- initializeRedundantDbgInstEliminationPass (*PassRegistry::getPassRegistry ());
48
- }
49
- bool runOnFunction (Function &F) override {
50
- if (skipFunction (F))
51
- return false ;
52
- bool Changed = false ;
53
- for (auto &BB : F)
54
- Changed |= RemoveRedundantDbgInstrs (&BB);
55
- return Changed;
56
- }
57
-
58
- void getAnalysisUsage (AnalysisUsage &AU) const override {
59
- AU.setPreservesCFG ();
60
- }
61
- };
62
- }
63
-
64
- char RedundantDbgInstElimination::ID = 0 ;
65
- INITIALIZE_PASS (RedundantDbgInstElimination, " redundant-dbg-inst-elim" ,
66
- " Redundant Dbg Instruction Elimination" , false , false )
67
-
68
- Pass *llvm::createRedundantDbgInstEliminationPass() {
69
- return new RedundantDbgInstElimination ();
70
- }
71
-
72
39
PreservedAnalyses
73
40
RedundantDbgInstEliminationPass::run (Function &F, FunctionAnalysisManager &AM) {
74
41
bool Changed = false ;
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ void llvm::initializeScalarOpts(PassRegistry &Registry) {
38
38
initializeNaryReassociateLegacyPassPass (Registry);
39
39
initializePartiallyInlineLibCallsLegacyPassPass (Registry);
40
40
initializeReassociateLegacyPassPass (Registry);
41
- initializeRedundantDbgInstEliminationPass (Registry);
42
41
initializeScalarizeMaskedMemIntrinLegacyPassPass (Registry);
43
42
initializeSROALegacyPassPass (Registry);
44
43
initializeCFGSimplifyPassPass (Registry);
You can’t perform that action at this time.
0 commit comments