From 8ae69338819d18d7a3669d8b51591bf742c61946 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Wed, 8 Sep 2021 15:28:43 -0500 Subject: [PATCH] [Polly] Compile fix after Delinearization move. by commit 585c594d749a2a88150b63804587af85abdabeaa --- polly/lib/Analysis/ScopDetection.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 65b52284f5bb..35a69b15231e 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -53,6 +53,7 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/Statistic.h" #include "llvm/Analysis/AliasAnalysis.h" +#include "llvm/Analysis/Delinearization.h" #include "llvm/Analysis/Loads.h" #include "llvm/Analysis/LoopInfo.h" #include "llvm/Analysis/OptimizationRemarkEmitter.h" @@ -895,7 +896,7 @@ ScopDetection::getDelinearizationTerms(DetectionContext &Context, if (auto *AF = dyn_cast(Pair.second)) { for (auto Op : AF->operands()) { if (auto *AF2 = dyn_cast(Op)) - SE.collectParametricTerms(AF2, Terms); + collectParametricTerms(SE, AF2, Terms); if (auto *AF2 = dyn_cast(Op)) { SmallVector Operands; @@ -918,7 +919,7 @@ ScopDetection::getDelinearizationTerms(DetectionContext &Context, } } if (Terms.empty()) - SE.collectParametricTerms(Pair.second, Terms); + collectParametricTerms(SE, Pair.second, Terms); } return Terms; } @@ -1012,8 +1013,8 @@ bool ScopDetection::computeAccessFunctions( if (Shape->DelinearizedSizes.size() == 0) { Acc->DelinearizedSubscripts.push_back(AF); } else { - SE.computeAccessFunctions(AF, Acc->DelinearizedSubscripts, - Shape->DelinearizedSizes); + llvm::computeAccessFunctions(SE, AF, Acc->DelinearizedSubscripts, + Shape->DelinearizedSizes); if (Acc->DelinearizedSubscripts.size() == 0) IsNonAffine = true; } @@ -1047,8 +1048,8 @@ bool ScopDetection::hasBaseAffineAccesses(DetectionContext &Context, auto Terms = getDelinearizationTerms(Context, BasePointer); - SE.findArrayDimensions(Terms, Shape->DelinearizedSizes, - Context.ElementSize[BasePointer]); + findArrayDimensions(SE, Terms, Shape->DelinearizedSizes, + Context.ElementSize[BasePointer]); if (!hasValidArraySizes(Context, Shape->DelinearizedSizes, BasePointer, Scope))