From cf40f9734f3397ff29b603d1c528475c17a5ba79 Mon Sep 17 00:00:00 2001 From: Dehao Chen Date: Fri, 16 May 2014 23:01:26 +0000 Subject: ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use optimize_function_for_size_p. 2014-05-16 Dehao Chen * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use optimize_function_for_size_p. * regs.h (REG_FREQ_FROM_BB): Likewise. From-SVN: r210536 --- gcc/ira-int.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/ira-int.h') diff --git a/gcc/ira-int.h b/gcc/ira-int.h index e36bb92..19d8601 100644 --- a/gcc/ira-int.h +++ b/gcc/ira-int.h @@ -42,9 +42,8 @@ along with GCC; see the file COPYING3. If not see profile driven feedback is available and the function is never executed, frequency is always equivalent. Otherwise rescale the edge frequency. */ -#define REG_FREQ_FROM_EDGE_FREQ(freq) \ - (optimize_size || (flag_branch_probabilities \ - && !ENTRY_BLOCK_PTR_FOR_FN (cfun)->count) \ +#define REG_FREQ_FROM_EDGE_FREQ(freq) \ + (optimize_function_for_size_p (cfun) \ ? REG_FREQ_MAX : (freq * REG_FREQ_MAX / BB_FREQ_MAX) \ ? (freq * REG_FREQ_MAX / BB_FREQ_MAX) : 1) -- cgit v1.1