From: Richard Biener Date: Wed, 20 Sep 2017 11:21:23 +0000 (+0000) Subject: re PR tree-optimization/77362 ([graphite] ICE in sese_build_liveouts_use w/ -O2 ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52e22c79dce498a3195bc8501fa54787a642067c;p=gcc.git re PR tree-optimization/77362 ([graphite] ICE in sese_build_liveouts_use w/ -O2 -floop-nest-optimize) 2017-09-20 Richard Biener PR tree-optimization/77362 * gcc.dg/graphite/pr77362.c: New testcase. From-SVN: r253006 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index da107c34b3d..3ebdab9996b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-09-20 Richard Biener + + PR tree-optimization/77362 + * gcc.dg/graphite/pr77362.c: New testcase. + 2017-09-20 Richard Biener PR tree-optimization/82264 diff --git a/gcc/testsuite/gcc.dg/graphite/pr77362.c b/gcc/testsuite/gcc.dg/graphite/pr77362.c new file mode 100644 index 00000000000..61b7a7dea41 --- /dev/null +++ b/gcc/testsuite/gcc.dg/graphite/pr77362.c @@ -0,0 +1,21 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -floop-nest-optimize" } */ + +int mc[2]; +int f2, sk; +short int hm; + +void +zm (void) +{ + int k1; + + for (k1 = 0; k1 < 2; ++k1) + { + for (sk = 0; sk < 2; ++sk) + mc[sk] = hm = ++f2; + if (hm >= 0) + ++hm; + } +} +