re PR tree-optimization/46966 (ICE: in execute_cse_reciprocals, at tree-ssa-math-opts.c:474 with -floop-interchange -fno-tree-copy-prop -fno-tree-loop-im)
PR tree-optimization/46966 * graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for for bbs that are removed from SCOP_BBS vector. * gcc.dg/graphite/pr46966.c: New test. From-SVN: r167960
This commit is contained in:
parent
9c8cbc740a
commit
7470b8fc5e
@ -1,3 +1,9 @@
|
||||
2010-12-16 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/46966
|
||||
* graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for
|
||||
for bbs that are removed from SCOP_BBS vector.
|
||||
|
||||
2010-12-16 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
|
||||
|
@ -1971,6 +1971,7 @@ build_scop_drs (scop_p scop)
|
||||
for (i = 0; VEC_iterate (poly_bb_p, SCOP_BBS (scop), i, pbb); i++)
|
||||
if (VEC_empty (data_reference_p, GBB_DATA_REFS (PBB_BLACK_BOX (pbb))))
|
||||
{
|
||||
free_gimple_bb (PBB_BLACK_BOX (pbb));
|
||||
VEC_ordered_remove (poly_bb_p, SCOP_BBS (scop), i);
|
||||
i--;
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2010-12-16 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/46966
|
||||
* gcc.dg/graphite/pr46966.c: New test.
|
||||
|
||||
2010-12-16 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gnat.dg/opt13.adb: New test.
|
||||
|
13
gcc/testsuite/gcc.dg/graphite/pr46966.c
Normal file
13
gcc/testsuite/gcc.dg/graphite/pr46966.c
Normal file
@ -0,0 +1,13 @@
|
||||
/* PR tree-optimization/46966 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O -floop-interchange -ffast-math -fno-tree-copy-prop -fno-tree-loop-im" } */
|
||||
|
||||
int a[1000][1000];
|
||||
|
||||
void foo ()
|
||||
{
|
||||
int i, j;
|
||||
for (i = 0; i < 1000; i++)
|
||||
for (j = 0; j < 1000; j++)
|
||||
a[i][j] = 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user