summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-16 20:05:18 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-16 20:05:18 +0000
commitd081c1c0db2962bea309cd31a62a83b5eaba213f (patch)
tree59801caa5e3967ccbe5f97664b8393fb7a52a4ce /gcc
parent0596fc07d788ad7baa5aad8354176d42a0192a9f (diff)
downloadgcc-d081c1c0db2962bea309cd31a62a83b5eaba213f.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/graphite-clast-to-gimple.c2
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/graphite/pr46404-1.c27
4 files changed, 38 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 351bce86add..287d21efaa9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/graphite-clast-to-gimple.c b/gcc/graphite-clast-to-gimple.c
index 4894b522e93..eef5ad16abd 100644
--- a/gcc/graphite-clast-to-gimple.c
+++ b/gcc/graphite-clast-to-gimple.c
@@ -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 ();
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index df48e936b24..8cfb516a2ab 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/graphite/pr46404-1.c b/gcc/testsuite/gcc.dg/graphite/pr46404-1.c
new file mode 100644
index 00000000000..c3e620cbc07
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/pr46404-1.c
@@ -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;
+}