Commit 105e8c06 by Richard Biener Committed by Richard Biener

re PR tree-optimization/55687 (ICE in hide_evolution_in_other_loops_than_loop, at tree-chrec.c:716)

2012-12-14  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/55687
	* tree-chrec.h (no_evolution_in_loop_p): Properly use
	tree_contains_chrecs.

	* gcc.dg/torture/pr55687.c: New testcase.

From-SVN: r194498
parent 6d9d886c
2012-12-14 Richard Biener <rguenther@suse.de>
PR tree-optimization/55687
* tree-chrec.h (no_evolution_in_loop_p): Properly use
tree_contains_chrecs.
2012-12-13 Richard Henderson <rth@redhat.com>
PR middle-end/55492
2012-12-14 Richard Biener <rguenther@suse.de>
PR tree-optimization/55687
* gcc.dg/torture/pr55687.c: New testcase.
2012-12-13 Jakub Jelinek <jakub@redhat.com>
PR c++/55652
......
/* { dg-do compile } */
typedef struct _IO_FILE FILE;
typedef short gshort;
typedef struct _GString GString;
extern char *fgets(char *, int, FILE *);
void verbose_text_loop (void *data)
{
FILE *dev_vcs;
char buf[81];
GString *buf_str;
gshort i, j;
while (1)
{
for (i = 1; i <= 7; i++)
{
while (fgets (buf, 81, dev_vcs))
{
for (j = 0; j < __builtin_strlen (buf); j++)
if (buf[j] != ' ')
break;
for (; j < __builtin_strlen (buf); j++)
g_string_append_c_inline (buf_str, buf[j]);
}
}
}
}
......@@ -117,7 +117,7 @@ no_evolution_in_loop_p (tree chrec, unsigned loop_num, bool *res)
STRIP_NOPS (chrec);
scev = hide_evolution_in_other_loops_than_loop (chrec, loop_num);
*res = !tree_is_chrec (scev);
*res = !tree_contains_chrecs (scev, NULL);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment