Commit 662f8070 by Vladimir Makarov Committed by Vladimir Makarov

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
parent 14bc59cb
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment