@@ -656,9 +656,6 @@ class InnerLoopVectorizer {
656
656
// / Dominator Tree.
657
657
DominatorTree *DT;
658
658
659
- // / Alias Analysis.
660
- AAResults *AA;
661
-
662
659
// / Target Library Info.
663
660
const TargetLibraryInfo *TLI;
664
661
@@ -2208,16 +2205,14 @@ struct LoopVectorize : public FunctionPass {
2208
2205
auto *BFI = &getAnalysis<BlockFrequencyInfoWrapperPass>().getBFI ();
2209
2206
auto *TLIP = getAnalysisIfAvailable<TargetLibraryInfoWrapperPass>();
2210
2207
auto *TLI = TLIP ? &TLIP->getTLI (F) : nullptr ;
2211
- auto *AA = &getAnalysis<AAResultsWrapperPass>().getAAResults ();
2212
2208
auto *AC = &getAnalysis<AssumptionCacheTracker>().getAssumptionCache (F);
2213
2209
auto &LAIs = getAnalysis<LoopAccessLegacyAnalysis>().getLAIs ();
2214
2210
auto *DB = &getAnalysis<DemandedBitsWrapperPass>().getDemandedBits ();
2215
2211
auto *ORE = &getAnalysis<OptimizationRemarkEmitterWrapperPass>().getORE ();
2216
2212
auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI ();
2217
2213
2218
2214
return Impl
2219
- .runImpl (F, *SE, *LI, *TTI, *DT, *BFI, TLI, *DB, *AA, *AC, LAIs, *ORE,
2220
- PSI)
2215
+ .runImpl (F, *SE, *LI, *TTI, *DT, *BFI, TLI, *DB, *AC, LAIs, *ORE, PSI)
2221
2216
.MadeAnyChange ;
2222
2217
}
2223
2218
@@ -2228,7 +2223,6 @@ struct LoopVectorize : public FunctionPass {
2228
2223
AU.addRequired <LoopInfoWrapperPass>();
2229
2224
AU.addRequired <ScalarEvolutionWrapperPass>();
2230
2225
AU.addRequired <TargetTransformInfoWrapperPass>();
2231
- AU.addRequired <AAResultsWrapperPass>();
2232
2226
AU.addRequired <LoopAccessLegacyAnalysis>();
2233
2227
AU.addRequired <DemandedBitsWrapperPass>();
2234
2228
AU.addRequired <OptimizationRemarkEmitterWrapperPass>();
@@ -7358,7 +7352,6 @@ static const char lv_name[] = "Loop Vectorization";
7358
7352
INITIALIZE_PASS_BEGIN (LoopVectorize, LV_NAME, lv_name, false , false )
7359
7353
INITIALIZE_PASS_DEPENDENCY(TargetTransformInfoWrapperPass)
7360
7354
INITIALIZE_PASS_DEPENDENCY(BasicAAWrapperPass)
7361
- INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass)
7362
7355
INITIALIZE_PASS_DEPENDENCY(GlobalsAAWrapperPass)
7363
7356
INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker)
7364
7357
INITIALIZE_PASS_DEPENDENCY(BlockFrequencyInfoWrapperPass)
@@ -10202,7 +10195,7 @@ bool LoopVectorizePass::processLoop(Loop *L) {
10202
10195
10203
10196
// Check if it is legal to vectorize the loop.
10204
10197
LoopVectorizationRequirements Requirements;
10205
- LoopVectorizationLegality LVL (L, PSE, DT, TTI, TLI, AA, F, *LAIs, LI, ORE,
10198
+ LoopVectorizationLegality LVL (L, PSE, DT, TTI, TLI, F, *LAIs, LI, ORE,
10206
10199
&Requirements, &Hints, DB, AC, BFI, PSI);
10207
10200
if (!LVL.canVectorize (EnableVPlanNativePath)) {
10208
10201
LLVM_DEBUG (dbgs () << " LV: Not vectorizing: Cannot prove legality.\n " );
@@ -10562,16 +10555,14 @@ bool LoopVectorizePass::processLoop(Loop *L) {
10562
10555
LoopVectorizeResult LoopVectorizePass::runImpl (
10563
10556
Function &F, ScalarEvolution &SE_, LoopInfo &LI_, TargetTransformInfo &TTI_,
10564
10557
DominatorTree &DT_, BlockFrequencyInfo &BFI_, TargetLibraryInfo *TLI_,
10565
- DemandedBits &DB_, AAResults &AA_, AssumptionCache &AC_,
10566
- LoopAccessInfoManager &LAIs_, OptimizationRemarkEmitter &ORE_,
10567
- ProfileSummaryInfo *PSI_) {
10558
+ DemandedBits &DB_, AssumptionCache &AC_, LoopAccessInfoManager &LAIs_,
10559
+ OptimizationRemarkEmitter &ORE_, ProfileSummaryInfo *PSI_) {
10568
10560
SE = &SE_;
10569
10561
LI = &LI_;
10570
10562
TTI = &TTI_;
10571
10563
DT = &DT_;
10572
10564
BFI = &BFI_;
10573
10565
TLI = TLI_;
10574
- AA = &AA_;
10575
10566
AC = &AC_;
10576
10567
LAIs = &LAIs_;
10577
10568
DB = &DB_;
@@ -10637,7 +10628,6 @@ PreservedAnalyses LoopVectorizePass::run(Function &F,
10637
10628
auto &DT = AM.getResult <DominatorTreeAnalysis>(F);
10638
10629
auto &BFI = AM.getResult <BlockFrequencyAnalysis>(F);
10639
10630
auto &TLI = AM.getResult <TargetLibraryAnalysis>(F);
10640
- auto &AA = AM.getResult <AAManager>(F);
10641
10631
auto &AC = AM.getResult <AssumptionAnalysis>(F);
10642
10632
auto &DB = AM.getResult <DemandedBitsAnalysis>(F);
10643
10633
auto &ORE = AM.getResult <OptimizationRemarkEmitterAnalysis>(F);
@@ -10647,7 +10637,7 @@ PreservedAnalyses LoopVectorizePass::run(Function &F,
10647
10637
ProfileSummaryInfo *PSI =
10648
10638
MAMProxy.getCachedResult <ProfileSummaryAnalysis>(*F.getParent ());
10649
10639
LoopVectorizeResult Result =
10650
- runImpl (F, SE, LI, TTI, DT, BFI, &TLI, DB, AA, AC, LAIs, ORE, PSI);
10640
+ runImpl (F, SE, LI, TTI, DT, BFI, &TLI, DB, AC, LAIs, ORE, PSI);
10651
10641
if (!Result.MadeAnyChange )
10652
10642
return PreservedAnalyses::all ();
10653
10643
PreservedAnalyses PA;
0 commit comments