diff options
| author | Florian Hahn <flo@fhahn.com> | 2024-12-13 11:39:01 +0000 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2024-12-13 11:39:01 +0000 |
| commit | 6eeb7f7c05afd0daaf210e7f2090a2697d7302b7 (patch) | |
| tree | 380fbd40a9eb8d0e455c87557c97a5272b2a4a69 | |
| parent | 0a6009d808e40e0154932d9061a036edaad42982 (diff) | |
!fixup fix polly build failuresusers/fhahn/scevuse
| -rw-r--r-- | polly/include/polly/Support/ScopHelper.h | 3 | ||||
| -rw-r--r-- | polly/lib/Support/ScopHelper.cpp | 24 |
2 files changed, 14 insertions, 13 deletions
diff --git a/polly/include/polly/Support/ScopHelper.h b/polly/include/polly/Support/ScopHelper.h index 13852ecb18ee..7ec5abd5dc22 100644 --- a/polly/include/polly/Support/ScopHelper.h +++ b/polly/include/polly/Support/ScopHelper.h @@ -14,6 +14,7 @@ #define POLLY_SUPPORT_IRHELPER_H #include "llvm/ADT/SetVector.h" +#include "llvm/Analysis/ScalarEvolution.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/ValueHandle.h" @@ -37,7 +38,7 @@ class Scop; class ScopStmt; /// Same as llvm/Analysis/ScalarEvolutionExpressions.h -using LoopToScevMapT = llvm::DenseMap<const llvm::Loop *, const llvm::SCEV *>; +using LoopToScevMapT = llvm::DenseMap<const llvm::Loop *, llvm::SCEVUse>; /// Enumeration of assumptions Polly can take. enum AssumptionKind { diff --git a/polly/lib/Support/ScopHelper.cpp b/polly/lib/Support/ScopHelper.cpp index 6d50e297ef71..5f6c24e9277e 100644 --- a/polly/lib/Support/ScopHelper.cpp +++ b/polly/lib/Support/ScopHelper.cpp @@ -411,38 +411,38 @@ private: return GenSE.getMulExpr(NewOps); } const SCEV *visitUMaxExpr(const SCEVUMaxExpr *E) { - SmallVector<const SCEV *, 4> NewOps; - for (const SCEV *Op : E->operands()) + SmallVector<SCEVUse, 4> NewOps; + for (SCEVUse Op : E->operands()) NewOps.push_back(visit(Op)); return GenSE.getUMaxExpr(NewOps); } const SCEV *visitSMaxExpr(const SCEVSMaxExpr *E) { - SmallVector<const SCEV *, 4> NewOps; - for (const SCEV *Op : E->operands()) + SmallVector<SCEVUse, 4> NewOps; + for (SCEVUse Op : E->operands()) NewOps.push_back(visit(Op)); return GenSE.getSMaxExpr(NewOps); } const SCEV *visitUMinExpr(const SCEVUMinExpr *E) { - SmallVector<const SCEV *, 4> NewOps; - for (const SCEV *Op : E->operands()) + SmallVector<SCEVUse, 4> NewOps; + for (SCEVUse Op : E->operands()) NewOps.push_back(visit(Op)); return GenSE.getUMinExpr(NewOps); } const SCEV *visitSMinExpr(const SCEVSMinExpr *E) { - SmallVector<const SCEV *, 4> NewOps; - for (const SCEV *Op : E->operands()) + SmallVector<SCEVUse, 4> NewOps; + for (SCEVUse Op : E->operands()) NewOps.push_back(visit(Op)); return GenSE.getSMinExpr(NewOps); } const SCEV *visitSequentialUMinExpr(const SCEVSequentialUMinExpr *E) { - SmallVector<const SCEV *, 4> NewOps; - for (const SCEV *Op : E->operands()) + SmallVector<SCEVUse, 4> NewOps; + for (SCEVUse Op : E->operands()) NewOps.push_back(visit(Op)); return GenSE.getUMinExpr(NewOps, /*Sequential=*/true); } const SCEV *visitAddRecExpr(const SCEVAddRecExpr *E) { - SmallVector<const SCEV *, 4> NewOps; - for (const SCEV *Op : E->operands()) + SmallVector<SCEVUse, 4> NewOps; + for (SCEVUse Op : E->operands()) NewOps.push_back(visit(Op)); const Loop *L = E->getLoop(); |
