Fix PR46404: call scev_reset to reset the number of iterations as well.

2010-12-16  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/46404
	* graphite-clast-to-gimple.c (gloog): Call scev_reset.

	* gcc.dg/graphite/pr46404-1.c: New.

From-SVN: r167954
This commit is contained in:
Sebastian Pop 2010-12-16 20:05:18 +00:00 committed by Sebastian Pop
parent ffafe01a87
commit 94406344b5
4 changed files with 38 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/46404
* graphite-clast-to-gimple.c (gloog): Call scev_reset.
2010-12-16 Anatoly Sokolov <aesok@post.ru>
* config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.

View File

@ -1555,7 +1555,7 @@ gloog (scop_p scop, htab_t bb_pbb_mapping)
&newivs, newivs_index,
bb_pbb_mapping, 1, params_index);
graphite_verify ();
scev_reset_htab ();
scev_reset ();
recompute_all_dominators ();
graphite_verify ();

View File

@ -1,3 +1,8 @@
2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/46404
* gcc.dg/graphite/pr46404-1.c: New.
2010-12-16 Jakub Jelinek <jakub@redhat.com>
PR debug/46893

View File

@ -0,0 +1,27 @@
/* { dg-options "-O -fgraphite-identity -fno-tree-scev-cprop" } */
int
huft_build (unsigned *b)
{
int k;
for (k = 0; k <= 10; k++)
if (foo ());
}
int
inflate_fixed ()
{
int i;
unsigned l[288];
for (i = 0; i < 144; i++)
l[i] = 8;
for (; i < 256; i++)
l[i] = 9;
for (; i < 280; i++)
l[i] = 7;
for (; i < 288; i++)
l[i] = 8;
if ((i = huft_build (l)) != 0)
return i;
for (i = 0; i < 30; i++)
l[i] = 5;
}