OSDN Git Service

[Polly] Update map passed to SCEVParameterReweriter.
authorFlorian Hahn <flo@fhahn.com>
Fri, 18 Sep 2020 10:40:45 +0000 (11:40 +0100)
committerFlorian 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

index c8e2984..8689623 100644 (file)
@@ -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(),