diff options
author | dehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-16 23:01:26 +0000 |
---|---|---|
committer | dehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-16 23:01:26 +0000 |
commit | e604463f41238584607f7bd6582eb1d7ab92c018 (patch) | |
tree | 8efa9607aecea48c0d6381e6b855c3cc4d594ddb /gcc/regs.h | |
parent | a02ddf20844abcbc8de38cc6f66c09325a0de722 (diff) | |
download | gcc-e604463f41238584607f7bd6582eb1d7ab92c018.tar.gz |
2014-05-16 Dehao Chen <dehao@google.com>
* ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use optimize_function_for_size_p.
* regs.h (REG_FREQ_FROM_BB): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210536 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regs.h')
-rw-r--r-- | gcc/regs.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/regs.h b/gcc/regs.h index 006caca5611..c8c978b24de 100644 --- a/gcc/regs.h +++ b/gcc/regs.h @@ -135,9 +135,7 @@ extern size_t reg_info_p_size; or profile driven feedback is available and the function is never executed, frequency is always equivalent. Otherwise rescale the basic block frequency. */ -#define REG_FREQ_FROM_BB(bb) (optimize_size \ - || (flag_branch_probabilities \ - && !ENTRY_BLOCK_PTR_FOR_FN (cfun)->count) \ +#define REG_FREQ_FROM_BB(bb) (optimize_function_for_size_p (cfun) \ ? REG_FREQ_MAX \ : ((bb)->frequency * REG_FREQ_MAX / BB_FREQ_MAX)\ ? ((bb)->frequency * REG_FREQ_MAX / BB_FREQ_MAX)\ |