re PR tree-optimization/77362 ([graphite] ICE in sese_build_liveouts_use w/ -O2 -floop-nest-optimize)

2017-09-20  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/77362
	* gcc.dg/graphite/pr77362.c: New testcase.

From-SVN: r253006
This commit is contained in:
Richard Biener 2017-09-20 11:21:23 +00:00 committed by Richard Biener
parent 2a9000795c
commit 52e22c79dc
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-09-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/77362
* gcc.dg/graphite/pr77362.c: New testcase.
2017-09-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/82264

View File

@ -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;
}
}