From 52e22c79dce498a3195bc8501fa54787a642067c Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 20 Sep 2017 11:21:23 +0000 Subject: 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/graphite/pr77362.c | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/graphite/pr77362.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index da107c3..3ebdab9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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 * gcc.dg/torture/pr82264.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/graphite/pr77362.c b/gcc/testsuite/gcc.dg/graphite/pr77362.c new file mode 100644 index 0000000..61b7a7d --- /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; + } +} + -- cgit v1.1