From edd021368e8ec06cfcd4d56f50a7245e335a8375 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Mon, 6 Mar 2023 09:00:33 -0800 Subject: [PATCH] [SROA] Make order of analysis fetching more predictable For pipeline tests. --- llvm/lib/Transforms/Scalar/SROA.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp index e2e0d036eee5d..d315910dd993d 100644 --- a/llvm/lib/Transforms/Scalar/SROA.cpp +++ b/llvm/lib/Transforms/Scalar/SROA.cpp @@ -5069,8 +5069,9 @@ PreservedAnalyses SROAPass::runImpl(Function &F, DominatorTree &RunDT, } PreservedAnalyses SROAPass::run(Function &F, FunctionAnalysisManager &AM) { - return runImpl(F, AM.getResult(F), - AM.getResult(F)); + DominatorTree &DT = AM.getResult(F); + AssumptionCache &AC = AM.getResult(F); + return runImpl(F, DT, AC); } void SROAPass::printPipeline(