[polly] r279821 - [FIX] Access dimensions should correspond to number of dimensions of the accesses array.

Roman Gareev via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 26 06:41:53 PDT 2016


Author: romangareev
Date: Fri Aug 26 08:41:53 2016
New Revision: 279821

URL: http://llvm.org/viewvc/llvm-project?rev=279821&view=rev
Log:
[FIX] Access dimensions should correspond to number of dimensions of the accesses array.

Modified:
    polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays.ll
    polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays___%bb9---%bb26.jscop.transformed

Modified: polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays.ll?rev=279821&r1=279820&r2=279821&view=diff
==============================================================================
--- polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays.ll (original)
+++ polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays.ll Fri Aug 26 08:41:53 2016
@@ -15,7 +15,7 @@
 ; CHECK:        double E[*][270336][200000]; // Element size 8
 ; CHECK:        i64 F[*][270336]; // Element size 8
 ;
-; CHECK:New access function '{ Stmt_bb12[i0, i1, i2] -> E[i2, i0] }'detected in JSCOP file
+; CHECK:New access function '{ Stmt_bb12[i0, i1, i2] -> E[0, i2, i0] }'detected in JSCOP file
 ;
 ; CODEGEN:define internal void @create_arrays(i32 %arg, i32 %arg1, i32 %arg2, double %arg3, double %beta, [1056 x double]* %A, [1024 x double]* %B, [1056 x double]* %arg7) #0 {
 ; CODEGEN:bb:
@@ -25,9 +25,11 @@
 ; CODEGEN:  %F = alloca [270336 x i64]
 ; CODEGEN:  br label %bb8
 ;
+; CODEGEN:  %beta.s2a.reload = load double, double* %beta.s2a
 ; CODEGEN:  %polly.access.cast.E = bitcast [270336 x [200000 x double]]* %E to double*
-; CODEGEN:  %polly.access.mul.E = mul nsw i64 %polly.indvar33, 270336
-; CODEGEN:  %polly.access.add.E = add nsw i64 %polly.access.mul.E, %polly.indvar
+; CODEGEN:  %polly.access.add.E = add nsw i64 0, %polly.indvar33
+; CODEGEN:  %polly.access.mul.E = mul nsw i64 %polly.access.add.E, 200000
+; CODEGEN:  %polly.access.add.E36 = add nsw i64 %polly.access.mul.E, %polly.indvar
 ;
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-unknown"

Modified: polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays___%bb9---%bb26.jscop.transformed
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays___%25bb9---%25bb26.jscop.transformed?rev=279821&r1=279820&r2=279821&view=diff
==============================================================================
--- polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays___%bb9---%bb26.jscop.transformed (original)
+++ polly/trunk/test/Isl/CodeGen/MemAccess/create_arrays___%bb9---%bb26.jscop.transformed Fri Aug 26 08:41:53 2016
@@ -33,7 +33,7 @@
          "accesses" : [
             {
                "kind" : "read",
-               "relation" : "{ Stmt_bb12[i0, i1, i2] -> E[i2, i0] }"
+               "relation" : "{ Stmt_bb12[i0, i1, i2] -> E[0, i2, i0] }"
             },
             {
                "kind" : "read",




More information about the llvm-commits mailing list