re PR rtl-optimization/49800 (segfault with -fsched-pressure -fdump-rtl-sched1)
2012-02-02 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/49800 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs. (sched_finish): Call regstat_free_n_sets_and_refs. From-SVN: r183843
This commit is contained in:
parent
14bc59cb4f
commit
662f8070eb
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
|
||||
|
||||
PR rtl-optimization/49800
|
||||
* haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
|
||||
(sched_finish): Call regstat_free_n_sets_and_refs.
|
||||
|
||||
2012-02-02 Jia Liu <proljc@gmail.com>
|
||||
|
||||
* config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
|
||||
|
|
|
@ -4835,6 +4835,10 @@ sched_init (void)
|
|||
{
|
||||
int i, max_regno = max_reg_num ();
|
||||
|
||||
if (sched_dump != NULL)
|
||||
/* We need info about pseudos for rtl dumps about pseudo
|
||||
classes and costs. */
|
||||
regstat_init_n_sets_and_refs ();
|
||||
ira_set_pseudo_classes (sched_verbose ? sched_dump : NULL);
|
||||
sched_regno_pressure_class
|
||||
= (enum reg_class *) xmalloc (max_regno * sizeof (enum reg_class));
|
||||
|
@ -4946,6 +4950,8 @@ sched_finish (void)
|
|||
haifa_finish_h_i_d ();
|
||||
if (sched_pressure_p)
|
||||
{
|
||||
if (regstat_n_sets_and_refs != NULL)
|
||||
regstat_free_n_sets_and_refs ();
|
||||
free (sched_regno_pressure_class);
|
||||
BITMAP_FREE (region_ref_regs);
|
||||
BITMAP_FREE (saved_reg_live);
|
||||
|
|
Loading…
Add table
Reference in a new issue