summaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-02 17:29:52 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-02 17:29:52 +0000
commit5338d8ac98eb182a05c25fb0fa316427c7a63317 (patch)
tree1f08df3ed5c909618d911eecffca578a7866695f /gcc/loop.c
parent83e32a86ce5b5190303dafd4a0e4ccec84b73d23 (diff)
downloadgcc-5338d8ac98eb182a05c25fb0fa316427c7a63317.tar.gz
* loop.c (scan_loop): Ensure update_end label does not
go away until reg_scan_update is run. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35428 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index ea4a0271762..4903cec0e2d 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -1131,11 +1131,19 @@ scan_loop (loop, flags)
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;
strength_reduce (loop, insn_count, flags);
reg_scan_update (update_start, update_end, loop_max_reg);
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);