From e803a64bc8b81e67597cab2553ce2b30b4facd51 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 30 Jan 2002 22:21:31 -0800 Subject: rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New. * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New. * rtl.c (note_insn_name): Update. * emit-rtl.c (remove_unnecessary_notes): Kill it. * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND to perform loop rotation. (expand_exit_loop_top_cond): New. * tree.h (expand_exit_loop_top_cond): Declare it. * c-semantics.c (genrtl_while_stmt): Use it. (genrtl_for_stmt): Likewise. * ada/trans.c (tree_transform) [N_Loop_Statement]: Use expand_exit_loop_top_cond. * f/ste.c (ffeste_begin_iterdo_): Use expand_exit_loop_top_cond. (ffeste_R819B): Likewise. From-SVN: r49364 --- gcc/c-semantics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/c-semantics.c') diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index eb5af2a76ae..c0bbc515da8 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -427,7 +427,7 @@ genrtl_while_stmt (t) cond = expand_cond (WHILE_COND (t)); emit_line_note (input_filename, lineno); - expand_exit_loop_if_false (0, cond); + expand_exit_loop_top_cond (0, cond); genrtl_do_pushlevel (); expand_stmt (WHILE_BODY (t)); @@ -529,7 +529,7 @@ genrtl_for_stmt (t) /* Expand the condition. */ emit_line_note (input_filename, lineno); if (cond) - expand_exit_loop_if_false (0, cond); + expand_exit_loop_top_cond (0, cond); /* Expand the body. */ genrtl_do_pushlevel (); -- cgit v1.2.1