re PR rtl-optimization/2960 (Duplicate loop conditions even with -Os)
authorRichard Henderson <rth@redhat.com>
Mon, 7 Oct 2002 03:01:39 +0000 (20:01 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 7 Oct 2002 03:01:39 +0000 (20:01 -0700)
        PR optimization/2960
        * toplev.c (rest_of_compilation): Don't copy_loop_headers if
        optimize_size.

From-SVN: r57870

gcc/ChangeLog
gcc/toplev.c

index 0f66fd0cfb3f270c0440cda1eb2601fb8fec4109..e5d76f5b7e2590a6c676a747ddc4de059aa6b99d 100644 (file)
@@ -1,3 +1,9 @@
+2002-10-06  Richard Henderson  <rth@redhat.com>
+
+       PR optimization/2960
+       * toplev.c (rest_of_compilation): Don't copy_loop_headers if
+       optimize_size.
+
 2002-10-06  Alexandre Oliva  <aoliva@redhat.com>
 
        * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
index 261442714fe126434fc68e1039a167c8bce423e5..1ef00cdfba18da4f4afb0cad03424ee2ff7e281a 100644 (file)
@@ -2676,7 +2676,8 @@ rest_of_compilation (decl)
 
   /* CFG is no longer maintained up-to-date.  */
   free_bb_for_insn ();
-  copy_loop_headers (insns);
+  if (!optimize_size)
+    copy_loop_headers (insns);
   purge_line_number_notes (insns);
   find_basic_blocks (insns, max_reg_num (), rtl_dump_file);