Created attachment 15715 [details] Test case opt /tmp/test.ll -polly-scops -polly-process-unprofitable -polly-allow-nonaffine-loops -analyze Statements { Stmt_loop2__TO__loop Domain := { Stmt_loop2__TO__loop[i0] : i0 >= -1 }; Schedule := { Stmt_loop2__TO__loop[i0] -> [] }; ReadAccess := [Reduction Type: NONE] [Scalar: 1] { Stmt_loop2__TO__loop[i0] -> MemRef_indvar_2__phi[] }; MayWriteAccess := [Reduction Type: NONE] [Scalar: 0] { Stmt_loop2__TO__loop[i0] -> MemRef_A[0] }; ReadAccess := [Reduction Type: NONE] [Scalar: 1] { Stmt_loop2__TO__loop[i0] -> MemRef_indvar_next_3[] }; MayWriteAccess := [Reduction Type: NONE] [Scalar: 1] { Stmt_loop2__TO__loop[i0] -> MemRef_indvar_3[] }; ReadAccess := [Reduction Type: NONE] [Scalar: 1] { Stmt_loop2__TO__loop[i0] -> MemRef_indvar_next_3[] }; MayWriteAccess := [Reduction Type: NONE] [Scalar: 1] { Stmt_loop2__TO__loop[i0] -> MemRef_indvar_3[] }; MayWriteAccess := [Reduction Type: NONE] [Scalar: 1] { Stmt_loop2__TO__loop[i0] -> MemRef_indvar[] }; MayWriteAccess := [Reduction Type: NONE] [Scalar: 1] { Stmt_loop2__TO__loop[i0] -> MemRef_indvar[] }; However, there is no loop within the scop (except the one hidden in the non-affine region).
Hi Johannes, maybe this bug is easy for you. It is in an area where you wrote most of the code.
Fixed in r258802.