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/ira-int.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/ira-int.h')
-rw-r--r-- | gcc/ira-int.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ira-int.h b/gcc/ira-int.h index e36bb9217d9..19d86019a0d 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) |