Skip to content

Commit

Permalink
[SROA] Make order of analysis fetching more predictable
Browse files Browse the repository at this point in the history
For pipeline tests.
  • Loading branch information
aeubanks committed Mar 6, 2023
1 parent 9306ef9 commit edd0213
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llvm/lib/Transforms/Scalar/SROA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5069,8 +5069,9 @@ PreservedAnalyses SROAPass::runImpl(Function &F, DominatorTree &RunDT,
}

PreservedAnalyses SROAPass::run(Function &F, FunctionAnalysisManager &AM) {
return runImpl(F, AM.getResult<DominatorTreeAnalysis>(F),
AM.getResult<AssumptionAnalysis>(F));
DominatorTree &DT = AM.getResult<DominatorTreeAnalysis>(F);
AssumptionCache &AC = AM.getResult<AssumptionAnalysis>(F);
return runImpl(F, DT, AC);
}

void SROAPass::printPipeline(
Expand Down

0 comments on commit edd0213

Please sign in to comment.