Skip to content

Commit

Permalink
[NewPM] Remove StripGCRelocatesLegacyPass (llvm#73403)
Browse files Browse the repository at this point in the history
This pass isn't used anywhere upstream and thus has no test coverage.
For these reasons, remove it.
  • Loading branch information
boomanaiden154 authored Nov 26, 2023
1 parent 5a74805 commit f4a4e2f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion llvm/include/llvm/InitializePasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ void initializeStackSafetyInfoWrapperPassPass(PassRegistry &);
void initializeStackSlotColoringPass(PassRegistry&);
void initializeStraightLineStrengthReduceLegacyPassPass(PassRegistry &);
void initializeStripDebugMachineModulePass(PassRegistry &);
void initializeStripGCRelocatesLegacyPass(PassRegistry &);
void initializeStructurizeCFGLegacyPassPass(PassRegistry &);
void initializeTailCallElimPass(PassRegistry&);
void initializeTailDuplicatePass(PassRegistry&);
Expand Down
20 changes: 0 additions & 20 deletions llvm/lib/Transforms/Utils/StripGCRelocates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Statepoint.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"

using namespace llvm;

Expand Down Expand Up @@ -66,21 +64,3 @@ PreservedAnalyses StripGCRelocates::run(Function &F,
PA.preserveSet<CFGAnalyses>();
return PA;
}

namespace {
struct StripGCRelocatesLegacy : public FunctionPass {
static char ID; // Pass identification, replacement for typeid
StripGCRelocatesLegacy() : FunctionPass(ID) {
initializeStripGCRelocatesLegacyPass(*PassRegistry::getPassRegistry());
}

void getAnalysisUsage(AnalysisUsage &Info) const override {}

bool runOnFunction(Function &F) override { return ::stripGCRelocates(F); }
};
char StripGCRelocatesLegacy::ID = 0;
} // namespace

INITIALIZE_PASS(StripGCRelocatesLegacy, "strip-gc-relocates",
"Strip gc.relocates inserted through RewriteStatepointsForGC",
true, false)
1 change: 0 additions & 1 deletion llvm/lib/Transforms/Utils/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ void llvm::initializeTransformUtils(PassRegistry &Registry) {
initializeLowerInvokeLegacyPassPass(Registry);
initializeLowerSwitchLegacyPassPass(Registry);
initializePromoteLegacyPassPass(Registry);
initializeStripGCRelocatesLegacyPass(Registry);
initializeFixIrreduciblePass(Registry);
initializeUnifyLoopExitsLegacyPassPass(Registry);
}

0 comments on commit f4a4e2f

Please sign in to comment.