Mercurial > hg > CbC > CbC_gcc
comparison gcc/regs.h @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
130:e108057fa461 | 132:d34655255c78 |
---|---|
1 /* Define per-register tables for data flow info and register allocation. | 1 /* Define per-register tables for data flow info and register allocation. |
2 Copyright (C) 1987-2017 Free Software Foundation, Inc. | 2 Copyright (C) 1987-2018 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
7 the terms of the GNU General Public License as published by the Free | 7 the terms of the GNU General Public License as published by the Free |
128 or profile driven feedback is available and the function is never executed, | 128 or profile driven feedback is available and the function is never executed, |
129 frequency is always equivalent. Otherwise rescale the basic block | 129 frequency is always equivalent. Otherwise rescale the basic block |
130 frequency. */ | 130 frequency. */ |
131 #define REG_FREQ_FROM_BB(bb) (optimize_function_for_size_p (cfun) \ | 131 #define REG_FREQ_FROM_BB(bb) (optimize_function_for_size_p (cfun) \ |
132 ? REG_FREQ_MAX \ | 132 ? REG_FREQ_MAX \ |
133 : ((bb)->frequency * REG_FREQ_MAX / BB_FREQ_MAX)\ | 133 : ((bb)->count.to_frequency (cfun) \ |
134 ? ((bb)->frequency * REG_FREQ_MAX / BB_FREQ_MAX)\ | 134 * REG_FREQ_MAX / BB_FREQ_MAX) \ |
135 ? ((bb)->count.to_frequency (cfun) \ | |
136 * REG_FREQ_MAX / BB_FREQ_MAX) \ | |
135 : 1) | 137 : 1) |
136 | 138 |
137 /* Indexed by N, gives number of insns in which register N dies. | 139 /* Indexed by N, gives number of insns in which register N dies. |
138 Note that if register N is live around loops, it can die | 140 Note that if register N is live around loops, it can die |
139 in transitions between basic blocks, and that is not counted here. | 141 in transitions between basic blocks, and that is not counted here. |