[Polly] Add TargetTransformInfo to ScopPass standard analysis results.

TargetTransformInfo is required by IslScheduleOptimizer, as ScopPass.
Unfortunately it is not possible to get arbitrary larger-unit analyses
in for as ScopPass. Loop passes also already use TargetTransformInfo as
LoopStandardAnalysisResults, hence wei might expect it to be available
to Scop passes as well.
This commit is contained in:
Michael Kruse 2021-02-09 22:30:42 -06:00
parent e7b9e43c9a
commit 5ff963fd11
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#include "polly/ScopInfo.h"
#include "llvm/ADT/PriorityWorklist.h"
#include "llvm/Analysis/RegionPass.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/IR/PassManager.h"
#include "llvm/IR/PassManagerImpl.h"
@ -176,6 +177,7 @@ struct ScopStandardAnalysisResults {
ScalarEvolution &SE;
LoopInfo &LI;
RegionInfo &RI;
TargetTransformInfo &TTI;
};
class SPMUpdater {
@ -224,7 +226,8 @@ public:
AM.getResult<ScopInfoAnalysis>(F),
AM.getResult<ScalarEvolutionAnalysis>(F),
AM.getResult<LoopAnalysis>(F),
AM.getResult<RegionInfoAnalysis>(F)};
AM.getResult<RegionInfoAnalysis>(F),
AM.getResult<TargetIRAnalysis>(F)};
ScopAnalysisManager &SAM =
AM.getResult<ScopAnalysisManagerFunctionProxy>(F).getManager();