re PR tree-optimization/22024 (ACATS ICE cxa5a07 cxa5a08 cxg2016 SEGV in get_rank tree-ssa-reassoc.c:292)

2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/22024
        * tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint
        rank.

From-SVN: r100993
This commit is contained in:
Andrew Pinski 2005-06-15 20:02:35 +00:00 committed by Andrew Pinski
parent fbb4c46b2d
commit 14643af3f8
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-06-15 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22024
* tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint
rank.
2005-06-15 Diego Novillo <dnovillo@redhat.com>
* tree-ssa-structalias.c (dump_solution_for_var): Reformat

View File

@ -230,6 +230,13 @@ init_reassoc (void)
insert_value_rank (def, ++rank);
}
}
/* Give the chain decl a distinct rank. */
if (cfun->static_chain_decl != NULL)
{
tree def = default_def (cfun->static_chain_decl);
if (def != NULL)
insert_value_rank (def, ++rank);
}
/* Set up rank for each BB */
for (i = 0; i < n_basic_blocks; i++)