[polly] 9da62d3 - [polly] Fix "no member named 'getIndexExpressionsFromGEP'"
Leonard Chan via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 8 20:06:24 PDT 2021
Author: Leonard Chan
Date: 2021-09-08T20:04:56-07:00
New Revision: 9da62d3ed9d7d8425acbaff13dfe65692db608f9
URL: https://github.com/llvm/llvm-project/commit/9da62d3ed9d7d8425acbaff13dfe65692db608f9
DIFF: https://github.com/llvm/llvm-project/commit/9da62d3ed9d7d8425acbaff13dfe65692db608f9.diff
LOG: [polly] Fix "no member named 'getIndexExpressionsFromGEP'"
As of 741fabc222f226d34d806056b804244b012853b, polly builders are
failing from this error. The signiature is slightly different and
accepts a ScalarEvolution reference instead. This should fix the polly
builders.
Added:
Modified:
polly/lib/Analysis/ScopBuilder.cpp
Removed:
################################################################################
diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp
index 78f4f5337383a..60d4183ac241c 100644
--- a/polly/lib/Analysis/ScopBuilder.cpp
+++ b/polly/lib/Analysis/ScopBuilder.cpp
@@ -30,6 +30,7 @@
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/AssumptionCache.h"
+#include "llvm/Analysis/Delinearization.h"
#include "llvm/Analysis/Loads.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/OptimizationRemarkEmitter.h"
@@ -1658,7 +1659,7 @@ bool ScopBuilder::buildAccessMultiDimFixed(MemAccInst Inst, ScopStmt *Stmt) {
SmallVector<const SCEV *, 4> Subscripts;
SmallVector<int, 4> Sizes;
- SE.getIndexExpressionsFromGEP(GEP, Subscripts, Sizes);
+ getIndexExpressionsFromGEP(SE, GEP, Subscripts, Sizes);
auto *BasePtr = GEP->getOperand(0);
if (auto *BasePtrCast = dyn_cast<BitCastInst>(BasePtr))
More information about the llvm-commits
mailing list