[polly] 762fbbe - [Polly] Update map passed to SCEVParameterReweriter.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 03:42:57 PDT 2020


Author: Florian Hahn
Date: 2020-09-18T11:42:33+01:00
New Revision: 762fbbe536996acf7175b551ce0e2c310165b135

URL: https://github.com/llvm/llvm-project/commit/762fbbe536996acf7175b551ce0e2c310165b135
DIFF: https://github.com/llvm/llvm-project/commit/762fbbe536996acf7175b551ce0e2c310165b135.diff

LOG: [Polly] Update map passed to SCEVParameterReweriter.

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.

Added: 
    

Modified: 
    polly/lib/CodeGen/IslExprBuilder.cpp

Removed: 
    


################################################################################
diff  --git a/polly/lib/CodeGen/IslExprBuilder.cpp b/polly/lib/CodeGen/IslExprBuilder.cpp
index c8e2984b1dc3..86896235eb83 100644
--- 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(),


        


More information about the llvm-commits mailing list