Commit f607c5c4 by Vladimir Makarov Committed by Vladimir Makarov

lra-remat.c (cand_transf_func): Process regno for rematerialization too.

2014-11-15  Vladimir Makarov  <vmakarov@redhat.com>

	* lra-remat.c (cand_transf_func): Process regno for
	rematerialization too.
	* lra.c (lra): Switch on rematerialization pass.

From-SVN: r217624
parent cb9365ac
2014-11-15 Vladimir Makarov <vmakarov@redhat.com> 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
* lra-remat.c (cand_transf_func): Process regno for
rematerialization too.
* lra.c (lra): Switch on rematerialization pass.
2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
* lra.c (lra): Switch off rematerialization pass. * lra.c (lra): Switch off rematerialization pass.
2014-11-15 Marc Glisse <marc.glisse@inria.fr> 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
...@@ -860,6 +860,10 @@ cand_trans_fun (int bb_index, bitmap bb_in, bitmap bb_out) ...@@ -860,6 +860,10 @@ cand_trans_fun (int bb_index, bitmap bb_in, bitmap bb_out)
bitmap_set_bit (&temp_bitmap, cid); bitmap_set_bit (&temp_bitmap, cid);
break; break;
} }
/* Check regno for rematerialization. */
if (bitmap_bit_p (bb_changed_regs, cand->regno)
|| bitmap_bit_p (bb_dead_regs, cand->regno))
bitmap_set_bit (&temp_bitmap, cid);
} }
return bitmap_ior_and_compl (bb_out, return bitmap_ior_and_compl (bb_out,
&bb_info->gen_cands, bb_in, &temp_bitmap); &bb_info->gen_cands, bb_in, &temp_bitmap);
......
...@@ -2354,7 +2354,7 @@ lra (FILE *f) ...@@ -2354,7 +2354,7 @@ lra (FILE *f)
break; break;
/* Now we know what pseudos should be spilled. Try to /* Now we know what pseudos should be spilled. Try to
rematerialize them first. */ rematerialize them first. */
if (0&&lra_remat ()) if (lra_remat ())
{ {
/* We need full live info -- see the comment above. */ /* We need full live info -- see the comment above. */
lra_create_live_ranges (lra_reg_spill_p, true); lra_create_live_ranges (lra_reg_spill_p, true);
......
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