jump.c (jump_optimize_1): Don't try to duplicate the loop exit test if optimizing...
authorRichard Henderson <rth@cygnus.com>
Wed, 17 Nov 1999 23:28:50 +0000 (15:28 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 17 Nov 1999 23:28:50 +0000 (15:28 -0800)
        * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
        test if optimizing for size.

From-SVN: r30559

gcc/ChangeLog
gcc/jump.c

index 35202c28eb056b773e96b6803936a82b9897c4d2..5d50e5e68c4522aeaec514c08022b695184e6d54 100644 (file)
@@ -1,9 +1,15 @@
+Wed Nov 17 15:18:30 1999  Richard Henderson  <rth@cygnus.com>
+
+       * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
+       test if optimizing for size.
+
 1999-11-17  Mark Mitchell  <mark@codesourcery.com>
 
        * Makefile.in (toplev.o): Depend on except.h.
        (dwarf2out.o,loop.o,flow.o,haifa-sched.o): Likewise.
 
 Mon Nov 15 22:45:39 CET 1999  Jan Hubicka  <hubicka@freesoft.cz>
+
        * i386.md (divmodsi4): Rewrite to expander.
        (*divmodsi4_nocltd): New.
        (*divmodsi4_cltd): New.
index 2020840a9d6d0d58563eff44f031e2a8985fa1a2..dd8aaeadfa3821e9ba5616bfd882bd439a690a09 100644 (file)
@@ -319,8 +319,12 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan, mark_labels_only)
          /* See if this is a NOTE_INSN_LOOP_BEG followed by an unconditional
             jump.  Try to optimize by duplicating the loop exit test if so.
             This is only safe immediately after regscan, because it uses
-            the values of regno_first_uid and regno_last_uid.  */
-         if (after_regscan && GET_CODE (insn) == NOTE
+            the values of regno_first_uid and regno_last_uid.  Don't do this
+            if optimizing for size.  */
+
+         if (! optimize_size
+             && after_regscan
+             && GET_CODE (insn) == NOTE
              && NOTE_LINE_NUMBER (insn) == NOTE_INSN_LOOP_BEG
              && (temp1 = next_nonnote_insn (insn)) != 0
              && simplejump_p (temp1))