]> gcc.gnu.org Git - gcc.git/commitdiff
toplev.c (rest_of_compilation): Run purge_builtin_constant_p before post-gcse cse...
authorRichard Henderson <rth@redhat.com>
Sun, 30 Mar 2003 23:21:15 +0000 (15:21 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 30 Mar 2003 23:21:15 +0000 (15:21 -0800)
        * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
        before post-gcse cse pass.

From-SVN: r65061

gcc/ChangeLog
gcc/toplev.c

index a51e1433eda4c5ae5dfd3f3cf79d99b04ff4af8d..9df9a0db8971a8269833650930ff5544120ce100 100644 (file)
@@ -1,3 +1,9 @@
+2003-03-30  Richard Henderson  <rth@redhat.com>
+
+       PR opt/10011, opt/10252:
+        * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
+        before post-gcse cse pass.
+
 2003-03-30  Roger Sayle  <roger@eyesopen.com>
 
        * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
index abcd0adcca551fb994e6a18416547897ef7dea8a..67cd53310f412423ee7d04cfd02d3e8c0c8873ca 100644 (file)
@@ -2929,6 +2929,10 @@ rest_of_compilation (decl)
       save_cfj = flag_cse_follow_jumps;
       flag_cse_skip_blocks = flag_cse_follow_jumps = 0;
 
+      /* Instantiate any remaining CONSTANT_P_RTX nodes.  */
+      if (current_function_calls_constant_p)
+       purge_builtin_constant_p ();
+
       /* If -fexpensive-optimizations, re-run CSE to clean up things done
         by gcse.  */
       if (flag_expensive_optimizations)
@@ -2974,10 +2978,6 @@ rest_of_compilation (decl)
 #endif
     }
 
-  /* Instantiate any remaining CONSTANT_P_RTX nodes.  */
-  if (optimize > 0 && flag_gcse && current_function_calls_constant_p)
-    purge_builtin_constant_p ();
-
   /* Move constant computations out of loops.  */
 
   if (optimize > 0 && flag_loop_optimize)
This page took 0.089701 seconds and 5 git commands to generate.