re PR tree-optimization/30565 (ICE with -O1 -ftree-pre -ftree-loop-linear)

PR tree-optimization/30565
	* lambda-code.c (perfect_nestify): Fix updating of dominators.

	* gcc.dg/tree-ssa/loop-27.c: New test.

From-SVN: r124378
This commit is contained in:
Zdenek Dvorak 2007-05-03 15:27:26 +02:00 committed by Zdenek Dvorak
parent e119f74e24
commit e604f56c8f
4 changed files with 26 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/30565
* lambda-code.c (perfect_nestify): Fix updating of dominators.
2007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.

View File

@ -2521,7 +2521,8 @@ perfect_nestify (struct loop *loop,
set_immediate_dominator (CDI_DOMINATORS, preheaderbb,
single_exit (loop)->src);
set_immediate_dominator (CDI_DOMINATORS, latchbb, bodybb);
set_immediate_dominator (CDI_DOMINATORS, olddest, bodybb);
set_immediate_dominator (CDI_DOMINATORS, olddest,
recount_dominator (CDI_DOMINATORS, olddest));
/* Create the new iv. */
oldivvar = VEC_index (tree, loopivs, 0);
ivvar = create_tmp_var (TREE_TYPE (oldivvar), "perfectiv");

View File

@ -1,3 +1,8 @@
2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/30565
* gcc.dg/tree-ssa/loop-27.c: New test.
2007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
* gcc.target/bfin/frmul.c (__v2hi): Use short as base type, not itn.

View File

@ -0,0 +1,14 @@
/* PR tree-optimization/30565 */
/* { dg-do compile } */
/* { dg-options "-O1 -ftree-pre -ftree-loop-linear" } */
static double snrdef[32];
void psycho_n1(double ltmin[2][32], int stereo)
{
int i, k;
for (k = 0; k < stereo; k++)
for (i = 0; i < 32; i++)
ltmin[k][i] = snrdef[i];
}