improve construction of the original schedule
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Nov 2015 20:43:51 +0000 (20:43 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Nov 2015 20:43:51 +0000 (20:43 +0000)
commitdf24635342323b3a01896d4866e2be6151174f2a
treea7750363fe6a9434a56d232430833e3216b9b9b5
parenta600501506506cb4d98f9eef71d3fe325549d50d
improve construction of the original schedule

The patch builds the original schedule based on the now optimized scattering
dimension instead of building one based on the loop index only.

The implementation is simpler and catches more cases where the original schedule
and the transformed schedule are the same, such as the one below:

for (i = 0; i < 1000; i++)
{
  Temp = F[i];
  for (j = 0; j < 1000; j++)
 {
    D[j] = E[j]  * Temp;
    A[i][j] = A[i][j]  + B[i][j] * C[i][j] - D[j] ;
  }
  D[i] = E[i] * F[i];
}

  * graphite-sese-to-poly.c (build_scop_original_schedule): Call
  isl_union_map_add_map on every pbb->schedule.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230191 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/graphite-sese-to-poly.c