Skip to content

Commit a7a9dd3

Browse files
committed
!fixup make arguments to LoopAccessInfoManager non-optional.
1 parent a7fb8a6 commit a7a9dd3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/include/llvm/Analysis/LoopAccessAnalysis.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -955,9 +955,8 @@ class LoopAccessInfoManager {
955955

956956
public:
957957
LoopAccessInfoManager(ScalarEvolution &SE, AAResults &AA, DominatorTree &DT,
958-
LoopInfo &LI, TargetTransformInfo *TTI = nullptr,
959-
const TargetLibraryInfo *TLI = nullptr,
960-
AssumptionCache *AC = nullptr)
958+
LoopInfo &LI, TargetTransformInfo *TTI,
959+
const TargetLibraryInfo *TLI, AssumptionCache *AC)
961960
: SE(SE), AA(AA), DT(DT), LI(LI), TTI(TTI), TLI(TLI), AC(AC) {}
962961

963962
LLVM_ABI const LoopAccessInfo &getInfo(Loop &L, bool AllowPartial = false);

llvm/lib/Transforms/Scalar/LoopFlatten.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,8 @@ PreservedAnalyses LoopFlattenPass::run(LoopNest &LN, LoopAnalysisManager &LAM,
10091009
// in simplified form, and also needs LCSSA. Running
10101010
// this pass will simplify all loops that contain inner loops,
10111011
// regardless of whether anything ends up being flattened.
1012-
LoopAccessInfoManager LAIM(AR.SE, AR.AA, AR.DT, AR.LI, &AR.TTI);
1012+
LoopAccessInfoManager LAIM(AR.SE, AR.AA, AR.DT, AR.LI, &AR.TTI, nullptr,
1013+
&AR.AC);
10131014
for (Loop *InnerLoop : LN.getLoops()) {
10141015
auto *OuterLoop = InnerLoop->getParentLoop();
10151016
if (!OuterLoop)

0 commit comments

Comments
 (0)