From: Roman Gareev Date: Fri, 26 Aug 2016 13:41:53 +0000 (+0000) Subject: [FIX] Access dimensions should correspond to number of dimensions of the accesses... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44aeef7ecff263f5b96290e9cd1186b25ac36d16;p=platform%2Fupstream%2Fllvm.git [FIX] Access dimensions should correspond to number of dimensions of the accesses array. llvm-svn: 279821 --- diff --git a/polly/test/Isl/CodeGen/MemAccess/create_arrays.ll b/polly/test/Isl/CodeGen/MemAccess/create_arrays.ll index 75998c5..f9e849e 100644 --- a/polly/test/Isl/CodeGen/MemAccess/create_arrays.ll +++ b/polly/test/Isl/CodeGen/MemAccess/create_arrays.ll @@ -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" diff --git a/polly/test/Isl/CodeGen/MemAccess/create_arrays___%bb9---%bb26.jscop.transformed b/polly/test/Isl/CodeGen/MemAccess/create_arrays___%bb9---%bb26.jscop.transformed index 67a1264..47c3ab9 100644 --- a/polly/test/Isl/CodeGen/MemAccess/create_arrays___%bb9---%bb26.jscop.transformed +++ b/polly/test/Isl/CodeGen/MemAccess/create_arrays___%bb9---%bb26.jscop.transformed @@ -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",