Commit bd182be8 by Kaz Kojima

re PR rtl-optimization/20117 (duplicated labels in PIC)

	PR rtl-optimization/20117
	* bb-reorder.c (duplicate_computed_gotos): Don't duplicate
	the block including noncopyable insn.

From-SVN: r95533
parent 2b5936fd
2005-02-25 Kaz Kojima <kkojima@gcc.gnu.org>
PR rtl-optimization/20117
* bb-reorder.c (duplicate_computed_gotos): Don't duplicate
the block including noncopyable insn.
2005-02-24 Kazu Hirata <kazu@cs.umass.edu>
* cse.c (delete_trivially_dead_insns): Speed up by minimizing
......
......@@ -2050,7 +2050,17 @@ duplicate_computed_gotos (void)
FOR_BB_INSNS (bb, insn)
{
if (INSN_P (insn))
size += get_attr_length (insn);
{
/* If the insn isn't copyable, don't duplicate
the block. */
if (targetm.cannot_copy_insn_p
&& targetm.cannot_copy_insn_p (insn))
{
size = max_size + 1;
break;
}
size += get_attr_length (insn);
}
if (size > max_size)
break;
}
......
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