Skip to content

Commit e7d5db6

Browse files
Gang Y Chenigcbot
Gang Y Chen
authored andcommitted
refactor MemOpt2
so I can apply the same clustering method in another optimization
1 parent c61dc8a commit e7d5db6

File tree

5 files changed

+214
-201
lines changed

5 files changed

+214
-201
lines changed

IGC/Compiler/CISACodeGen/AdvMemOpt.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ namespace {
3939
DominatorTree* DT;
4040
LoopInfo* LI;
4141
PostDominatorTree* PDT;
42-
ScalarEvolution* SE;
4342
WIAnalysis* WI;
4443

4544
public:
@@ -63,7 +62,6 @@ namespace {
6362
AU.addRequired<DominatorTreeWrapperPass>();
6463
AU.addRequired<LoopInfoWrapperPass>();
6564
AU.addRequired<PostDominatorTreeWrapperPass>();
66-
AU.addRequired<ScalarEvolutionWrapperPass>();
6765
}
6866

6967
bool collectOperandInst(SmallPtrSetImpl<Instruction*>&,
@@ -115,7 +113,6 @@ bool AdvMemOpt::runOnFunction(Function& F) {
115113
DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
116114
PDT = &getAnalysis<PostDominatorTreeWrapperPass>().getPostDomTree();
117115
LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
118-
SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
119116
WI = &getAnalysis<WIAnalysis>();
120117

121118
SmallVector<Loop*, 8> InnermostLoops;

0 commit comments

Comments
 (0)