|
71 | 71 | #include "llvm/Analysis/LoopPass.h" |
72 | 72 | #include "llvm/Analysis/ScalarEvolution.h" |
73 | 73 | #include "llvm/Analysis/ScalarEvolutionExpressions.h" |
74 | | -#include "llvm/Analysis/TargetLibraryInfo.h" |
75 | | -#include "llvm/Analysis/TargetTransformInfo.h" |
76 | | -#include "llvm/CodeGen/TargetInstrInfo.h" |
77 | | -#include "llvm/CodeGen/TargetPassConfig.h" |
78 | 74 | #include "llvm/IR/IRBuilder.h" |
79 | 75 | #include "llvm/InitializePasses.h" |
80 | 76 | #include "llvm/Support/CommandLine.h" |
@@ -108,8 +104,6 @@ class EraVMIndexedMemOpsPrepare : public LoopPass { |
108 | 104 | void getAnalysisUsage(AnalysisUsage &AU) const override { |
109 | 105 | AU.addRequired<ScalarEvolutionWrapperPass>(); |
110 | 106 | AU.addRequired<LoopInfoWrapperPass>(); |
111 | | - AU.addRequired<TargetPassConfig>(); |
112 | | - AU.addRequired<TargetTransformInfoWrapperPass>(); |
113 | 107 | AU.addPreserved<LoopInfoWrapperPass>(); |
114 | 108 | AU.setPreservesCFG(); |
115 | 109 | } |
@@ -279,5 +273,7 @@ char EraVMIndexedMemOpsPrepare::ID = 0; |
279 | 273 |
|
280 | 274 | INITIALIZE_PASS_BEGIN(EraVMIndexedMemOpsPrepare, DEBUG_TYPE, |
281 | 275 | ERAVM_PREPARE_INDEXED_MEMOPS_NAME, false, false) |
| 276 | +INITIALIZE_PASS_DEPENDENCY(ScalarEvolutionWrapperPass) |
| 277 | +INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass) |
282 | 278 | INITIALIZE_PASS_END(EraVMIndexedMemOpsPrepare, DEBUG_TYPE, |
283 | 279 | ERAVM_PREPARE_INDEXED_MEMOPS_NAME, false, false) |
0 commit comments