fix PR68550: do not handle ISL loop peeled statements
authorAditya Kumar <aditya.k7@samsung.com>
Wed, 2 Dec 2015 20:40:17 +0000 (20:40 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 2 Dec 2015 20:40:17 +0000 (20:40 +0000)
commitca377fc3710c76c35cec79ee96af999e060564b9
tree0679698553e27f050c59ee1e87f955b6ec39918c
parentc297b7cd54c0a39c906a3e445a36c16aeef7defd
fix PR68550: do not handle ISL loop peeled statements

In case ISL did some loop peeling, like this:

  S_8(0);
  for (int c1 = 1; c1 <= 5; c1 += 1) {
    S_8(c1);
  }
  S_8(6);

we should not copy loop-phi nodes in S_8(0) or in S_8(6).

PR tree-optimization/68550
* graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
(copy_bb_and_scalar_dependences): Do not code generate loop peeled
statements.

* gfortran.dg/graphite/pr68550-1.f90: New.
* gfortran.dg/graphite/pr68550-2.f90: New.

Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r231206
gcc/ChangeLog
gcc/graphite-isl-ast-to-gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/graphite/pr68550-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/graphite/pr68550-2.f90 [new file with mode: 0644]