Skip to content

Commit 29cd5cb

Browse files
[NewPM] Remove LazyValueInfoPrinter Pass
This pass isn't used anywhere upstream and thus has no test coverage. For these reasons, remove it.
1 parent c0fe071 commit 29cd5cb

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

llvm/include/llvm/InitializePasses.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ void initializeLCSSAWrapperPassPass(PassRegistry&);
144144
void initializeLazyBlockFrequencyInfoPassPass(PassRegistry&);
145145
void initializeLazyBranchProbabilityInfoPassPass(PassRegistry&);
146146
void initializeLazyMachineBlockFrequencyInfoPassPass(PassRegistry&);
147-
void initializeLazyValueInfoPrinterPass(PassRegistry&);
148147
void initializeLazyValueInfoWrapperPassPass(PassRegistry&);
149148
void initializeLegacyLICMPassPass(PassRegistry&);
150149
void initializeLegalizerPass(PassRegistry&);

llvm/lib/Analysis/Analysis.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ void llvm::initializeAnalysis(PassRegistry &Registry) {
4343
initializeLazyBranchProbabilityInfoPassPass(Registry);
4444
initializeLazyBlockFrequencyInfoPassPass(Registry);
4545
initializeLazyValueInfoWrapperPassPass(Registry);
46-
initializeLazyValueInfoPrinterPass(Registry);
4746
initializeLoopInfoWrapperPassPass(Registry);
4847
initializeMemoryDependenceWrapperPassPass(Registry);
4948
initializeModuleSummaryIndexWrapperPassPass(Registry);

llvm/lib/Analysis/LazyValueInfo.cpp

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2095,37 +2095,3 @@ PreservedAnalyses LazyValueInfoPrinterPass::run(Function &F,
20952095
LVI.printLVI(F, DTree, OS);
20962096
return PreservedAnalyses::all();
20972097
}
2098-
2099-
namespace {
2100-
// Printer class for LazyValueInfo results.
2101-
class LazyValueInfoPrinter : public FunctionPass {
2102-
public:
2103-
static char ID; // Pass identification, replacement for typeid
2104-
LazyValueInfoPrinter() : FunctionPass(ID) {
2105-
initializeLazyValueInfoPrinterPass(*PassRegistry::getPassRegistry());
2106-
}
2107-
2108-
void getAnalysisUsage(AnalysisUsage &AU) const override {
2109-
AU.setPreservesAll();
2110-
AU.addRequired<LazyValueInfoWrapperPass>();
2111-
AU.addRequired<DominatorTreeWrapperPass>();
2112-
}
2113-
2114-
// Get the mandatory dominator tree analysis and pass this in to the
2115-
// LVIPrinter. We cannot rely on the LVI's DT, since it's optional.
2116-
bool runOnFunction(Function &F) override {
2117-
dbgs() << "LVI for function '" << F.getName() << "':\n";
2118-
auto &LVI = getAnalysis<LazyValueInfoWrapperPass>().getLVI();
2119-
auto &DTree = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
2120-
LVI.printLVI(F, DTree, dbgs());
2121-
return false;
2122-
}
2123-
};
2124-
}
2125-
2126-
char LazyValueInfoPrinter::ID = 0;
2127-
INITIALIZE_PASS_BEGIN(LazyValueInfoPrinter, "print-lazy-value-info",
2128-
"Lazy Value Info Printer Pass", false, false)
2129-
INITIALIZE_PASS_DEPENDENCY(LazyValueInfoWrapperPass)
2130-
INITIALIZE_PASS_END(LazyValueInfoPrinter, "print-lazy-value-info",
2131-
"Lazy Value Info Printer Pass", false, false)

0 commit comments

Comments
 (0)