Skip to content

Commit 284f733

Browse files
committed
Removed legacy Pass
Since we're not adding to the codegen pipeline anymore
1 parent 07d2c2c commit 284f733

File tree

3 files changed

+0
-39
lines changed

3 files changed

+0
-39
lines changed

llvm/include/llvm/CodeGen/EVLIndVarSimplify.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@
2020
namespace llvm {
2121
class Loop;
2222
class LPMUpdater;
23-
class Pass;
2423

2524
/// Turn vectorized loops with canonical induction variables into loops that
2625
/// only use a single EVL-based induction variable.
2726
struct EVLIndVarSimplifyPass : public PassInfoMixin<EVLIndVarSimplifyPass> {
2827
PreservedAnalyses run(Loop &L, LoopAnalysisManager &LAM,
2928
LoopStandardAnalysisResults &AR, LPMUpdater &U);
3029
};
31-
32-
Pass *createEVLIndVarSimplifyPass();
3330
} // namespace llvm
3431
#endif

llvm/include/llvm/InitializePasses.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ void initializeExpandReductionsPass(PassRegistry &);
113113
void initializeExpandVariadicsPass(PassRegistry &);
114114
void initializeExpandVectorPredicationPass(PassRegistry &);
115115
void initializeExternalAAWrapperPassPass(PassRegistry &);
116-
void initializeEVLIndVarSimplifyPass(PassRegistry &);
117116
void initializeFEntryInserterPass(PassRegistry &);
118117
void initializeFinalizeISelPass(PassRegistry &);
119118
void initializeFinalizeMachineBundlesPass(PassRegistry &);

llvm/lib/CodeGen/EVLIndVarSimplify.cpp

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
#include "llvm/Analysis/ValueTracking.h"
2222
#include "llvm/IR/IRBuilder.h"
2323
#include "llvm/IR/PatternMatch.h"
24-
#include "llvm/InitializePasses.h"
25-
#include "llvm/Pass.h"
2624
#include "llvm/Support/CommandLine.h"
2725
#include "llvm/Support/Debug.h"
2826
#include "llvm/Support/MathExtras.h"
@@ -54,21 +52,6 @@ struct EVLIndVarSimplifyImpl {
5452
// Returns true if modify the loop.
5553
bool run(Loop &L);
5654
};
57-
58-
struct EVLIndVarSimplify : public LoopPass {
59-
static char ID;
60-
61-
EVLIndVarSimplify() : LoopPass(ID) {
62-
initializeEVLIndVarSimplifyPass(*PassRegistry::getPassRegistry());
63-
}
64-
65-
bool runOnLoop(Loop *L, LPPassManager &LPM) override;
66-
67-
void getAnalysisUsage(AnalysisUsage &AU) const override {
68-
AU.addRequired<ScalarEvolutionWrapperPass>();
69-
AU.setPreservesCFG();
70-
}
71-
};
7255
} // anonymous namespace
7356

7457
static uint32_t getVFFromIndVar(const SCEV *Step, const Function &F) {
@@ -251,21 +234,3 @@ PreservedAnalyses EVLIndVarSimplifyPass::run(Loop &L, LoopAnalysisManager &LAM,
251234
return PreservedAnalyses::allInSet<CFGAnalyses>();
252235
return PreservedAnalyses::all();
253236
}
254-
255-
char EVLIndVarSimplify::ID = 0;
256-
257-
INITIALIZE_PASS_BEGIN(EVLIndVarSimplify, DEBUG_TYPE,
258-
"EVL-based Induction Variables Simplify", false, false)
259-
INITIALIZE_PASS_DEPENDENCY(ScalarEvolutionWrapperPass)
260-
INITIALIZE_PASS_END(EVLIndVarSimplify, DEBUG_TYPE,
261-
"EVL-based Induction Variables Simplify", false, false)
262-
263-
bool EVLIndVarSimplify::runOnLoop(Loop *L, LPPassManager &LPM) {
264-
if (skipLoop(L))
265-
return false;
266-
267-
auto &SE = getAnalysis<ScalarEvolutionWrapperPass>().getSE();
268-
return EVLIndVarSimplifyImpl(SE).run(*L);
269-
}
270-
271-
Pass *llvm::createEVLIndVarSimplifyPass() { return new EVLIndVarSimplify(); }

0 commit comments

Comments
 (0)