Remove assert in get_def_bb_for_const
2016-05-30 Tom de Vries <tom@codesourcery.com> PR tree-optimization/69067 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert. * gcc.dg/graphite/pr69067.c: New test. From-SVN: r236868
This commit is contained in:
parent
89bd6e5d19
commit
7e01285587
4 changed files with 38 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2016-05-30 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR tree-optimization/69067
|
||||
* graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
|
||||
|
||||
2016-05-29 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/71245
|
||||
|
|
|
@ -1792,7 +1792,6 @@ get_def_bb_for_const (basic_block bb, basic_block old_bb) const
|
|||
b1 = b2;
|
||||
}
|
||||
|
||||
gcc_assert (b1);
|
||||
return b1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2016-05-30 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR tree-optimization/69067
|
||||
* gcc.dg/graphite/pr69067.c: New test.
|
||||
|
||||
2016-05-29 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/71245
|
||||
|
|
28
gcc/testsuite/gcc.dg/graphite/pr69067.c
Normal file
28
gcc/testsuite/gcc.dg/graphite/pr69067.c
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* { dg-do link } */
|
||||
/* { dg-options " -O1 -floop-nest-optimize" } */
|
||||
/* { dg-additional-options "-flto" { target lto } } */
|
||||
|
||||
int a1, c1, cr, kt;
|
||||
int aa[2];
|
||||
|
||||
int
|
||||
ce (void)
|
||||
{
|
||||
while (a1 < 1)
|
||||
{
|
||||
int g8;
|
||||
for (g8 = 0; g8 < 3; ++g8)
|
||||
if (c1 != 0)
|
||||
cr = aa[a1 * 2] = kt;
|
||||
for (c1 = 0; c1 < 2; ++c1)
|
||||
aa[c1] = cr;
|
||||
++a1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
return ce (aa);
|
||||
}
|
Loading…
Add table
Reference in a new issue