Commit bb45bd5a by Jakub Jelinek Committed by Jakub Jelinek

loop.c (scan_loop): Ensure update_end label does not go away until reg_scan_update is run.

	* loop.c (scan_loop): Ensure update_end label does not
	go away until reg_scan_update is run.

From-SVN: r35428
parent 50e60bc3
2000-08-02 Jakub Jelinek <jakub@redhat.com>
* loop.c (scan_loop): Ensure update_end label does not
go away until reg_scan_update is run.
2000-08-02 Zack Weinberg <zack@wolery.cumb.org> 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
* c-common.h: Prototype min_precision and c_build_qualified_type here... * c-common.h: Prototype min_precision and c_build_qualified_type here...
......
...@@ -1131,11 +1131,19 @@ scan_loop (loop, flags) ...@@ -1131,11 +1131,19 @@ scan_loop (loop, flags)
if (flag_strength_reduce) if (flag_strength_reduce)
{ {
if (update_end && GET_CODE (update_end) == CODE_LABEL)
/* Ensure our label doesn't go away. */
LABEL_NUSES (update_end)++;
the_movables = movables; the_movables = movables;
strength_reduce (loop, insn_count, flags); strength_reduce (loop, insn_count, flags);
reg_scan_update (update_start, update_end, loop_max_reg); reg_scan_update (update_start, update_end, loop_max_reg);
loop_max_reg = max_reg_num (); loop_max_reg = max_reg_num ();
if (update_end && GET_CODE (update_end) == CODE_LABEL
&& --LABEL_NUSES (update_end) == 0)
delete_insn (update_end);
} }
VARRAY_FREE (reg_single_usage); VARRAY_FREE (reg_single_usage);
......
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