From 07d9b20d818e83c12fee88ea4c41f3788ccee94b Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Sat, 25 Jan 2003 17:42:39 +0000 Subject: function.h (struct function): New field calls_constant_p. * function.h (struct function): New field calls_constant_p. (current_function_calls_constant_p): New macro for above. * function.c (prepare_function_start): Initialize calls_eh_return and calls_constant_p. * builtins.c (expand_builtin_constant_p): Set calls_constant_p. * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p when the current_function_calls_constant_p. * integrate.c (expand_inline_function): Set calls_constant_p if the function being inlined has calls_constant_p set. From-SVN: r61786 --- gcc/toplev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 60370c2..a624920 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2925,7 +2925,7 @@ rest_of_compilation (decl) } /* Instantiate any remaining CONSTANT_P_RTX nodes. */ - if (optimize > 0 && flag_gcse) + if (optimize > 0 && flag_gcse && current_function_calls_constant_p) purge_builtin_constant_p (); /* Move constant computations out of loops. */ -- cgit v1.1