Skip to content

Commit edd0213

Browse files
committed
[SROA] Make order of analysis fetching more predictable
For pipeline tests.
1 parent 9306ef9 commit edd0213

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -5069,8 +5069,9 @@ PreservedAnalyses SROAPass::runImpl(Function &F, DominatorTree &RunDT,
50695069
}
50705070

50715071
PreservedAnalyses SROAPass::run(Function &F, FunctionAnalysisManager &AM) {
5072-
return runImpl(F, AM.getResult<DominatorTreeAnalysis>(F),
5073-
AM.getResult<AssumptionAnalysis>(F));
5072+
DominatorTree &DT = AM.getResult<DominatorTreeAnalysis>(F);
5073+
AssumptionCache &AC = AM.getResult<AssumptionAnalysis>(F);
5074+
return runImpl(F, DT, AC);
50745075
}
50755076

50765077
void SROAPass::printPipeline(

0 commit comments

Comments
 (0)