toplev.c (rest_of_compilation): Turn on cse_not_expected before cse2 instead of after.
authorRichard Henderson <rth@cygnus.com>
Mon, 4 Oct 1999 18:30:10 +0000 (11:30 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 4 Oct 1999 18:30:10 +0000 (11:30 -0700)
        * toplev.c (rest_of_compilation): Turn on cse_not_expected
        before cse2 instead of after.

From-SVN: r29806

gcc/ChangeLog
gcc/toplev.c

index 4eef6fa72d35284ee2afaeb1a1c8ba59d53997f4..c714764652c65ad08a8433692c609d42e1d1557e 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct  4 11:28:37 1999  Richard Henderson  <rth@cygnus.com>
+
+       * toplev.c (rest_of_compilation): Turn on cse_not_expected
+       before cse2 instead of after.
+
 Mon Oct 4 09:55:17 1999  Stan Cox  <scox@cygnus.com>
 
        * mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
index 662ab4095f4d48aae982e6500a3d64f254c1d9a8..b940e3f77c95e0bfa2a342693a5915d1dc3f9935 100644 (file)
@@ -3856,6 +3856,11 @@ rest_of_compilation (decl)
        ggc_collect ();
     }
 
+  /* ??? Well, nearly.  If HAVE_conditional_arithmetic, jump_optimize
+     has put off all if-conversion until "after CSE".  If we put this
+     off any longer we may miss out doing if-conversion entirely.  */
+  cse_not_expected = 1;
+
   if (optimize > 0)
     {
       if (cse2_dump)
@@ -3925,10 +3930,6 @@ rest_of_compilation (decl)
        ggc_collect ();
     }
 
-  /* We are no longer anticipating cse in this function, at least.  */
-
-  cse_not_expected = 1;
-
   /* Now we choose between stupid (pcc-like) register allocation
      (if we got the -noreg switch and not -opt)
      and smart register allocation.  */