From: Richard Henderson Date: Sun, 30 Mar 2003 23:21:15 +0000 (-0800) Subject: toplev.c (rest_of_compilation): Run purge_builtin_constant_p before post-gcse cse... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d1f4922c3fc8c34a5c1a53e0f950609f4aaf948;p=gcc.git toplev.c (rest_of_compilation): Run purge_builtin_constant_p before post-gcse cse pass. * toplev.c (rest_of_compilation): Run purge_builtin_constant_p before post-gcse cse pass. From-SVN: r65061 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a51e1433eda..9df9a0db897 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-03-30 Richard Henderson + + 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 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison. diff --git a/gcc/toplev.c b/gcc/toplev.c index abcd0adcca5..67cd53310f4 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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)