OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93fd30b
)
[Polly] Update map passed to SCEVParameterReweriter.
author
Florian Hahn
<flo@fhahn.com>
Fri, 18 Sep 2020 10:40:45 +0000
(11:40 +0100)
committer
Florian Hahn
<flo@fhahn.com>
Fri, 18 Sep 2020 10:42:33 +0000
(11:42 +0100)
The type of the map the SCEVParameterRewriter takes has been changed in
4635f6050b10
.
Update the single use in polly to use SCEV* as type of the values.
polly/lib/CodeGen/IslExprBuilder.cpp
patch
|
blob
|
history
diff --git
a/polly/lib/CodeGen/IslExprBuilder.cpp
b/polly/lib/CodeGen/IslExprBuilder.cpp
index
c8e2984
..
8689623
100644
(file)
--- a/
polly/lib/CodeGen/IslExprBuilder.cpp
+++ b/
polly/lib/CodeGen/IslExprBuilder.cpp
@@
-313,7
+313,9
@@
Value *IslExprBuilder::createAccessAddress(isl_ast_expr *Expr) {
const SCEV *DimSCEV = SAI->getDimensionSize(u);
- llvm::ValueToValueMap Map(GlobalMap.begin(), GlobalMap.end());
+ llvm::ValueToSCEVMapTy Map;
+ for (auto &KV : GlobalMap)
+ Map[KV.first] = SE.getSCEV(KV.second);
DimSCEV = SCEVParameterRewriter::rewrite(DimSCEV, SE, Map);
Value *DimSize =
expandCodeFor(S, SE, DL, "polly", DimSCEV, DimSCEV->getType(),