Skip to content

Commit

Permalink
[polly] Fix "no member named 'getIndexExpressionsFromGEP'"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
PiJoules committed Sep 9, 2021
1 parent 883e93c commit 9da62d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion polly/lib/Analysis/ScopBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 9da62d3

Please sign in to comment.