[polly] r240954 - Fix delinearization after it's move to ScalarEvoltion

Tobias Grosser tobias at grosser.es
Mon Jun 29 07:44:17 PDT 2015


Author: grosser
Date: Mon Jun 29 09:44:17 2015
New Revision: 240954

URL: http://llvm.org/viewvc/llvm-project?rev=240954&view=rev
Log:
Fix delinearization after it's move to ScalarEvoltion

Modified:
    polly/trunk/lib/Analysis/ScopDetection.cpp

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=240954&r1=240953&r2=240954&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Mon Jun 29 09:44:17 2015
@@ -470,11 +470,10 @@ bool ScopDetection::hasAffineMemoryAcces
     // First step: collect parametric terms in all array references.
     SmallVector<const SCEV *, 4> Terms;
     for (const auto &Pair : Context.Accesses[BasePointer]) {
-      const SCEVAddRecExpr *AccessFunction =
-          dyn_cast<SCEVAddRecExpr>(Pair.second);
+      const SCEVAddRecExpr *AF = dyn_cast<SCEVAddRecExpr>(Pair.second);
 
-      if (AccessFunction)
-        AccessFunction->collectParametricTerms(*SE, Terms);
+      if (AF)
+        SE->collectParametricTerms(AF, Terms);
     }
 
     // Second step: find array shape.
@@ -529,7 +528,7 @@ bool ScopDetection::hasAffineMemoryAcces
         else
           IsNonAffine = true;
       } else {
-        AF->computeAccessFunctions(*SE, Acc->DelinearizedSubscripts,
+        SE->computeAccessFunctions(AF, Acc->DelinearizedSubscripts,
                                    Shape->DelinearizedSizes);
         if (Acc->DelinearizedSubscripts.size() == 0)
           IsNonAffine = true;





More information about the llvm-commits mailing list