comparison gcc/bt-load.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* Perform branch target register load optimizations. 1 /* Perform branch target register load optimizations.
2 Copyright (C) 2001-2017 Free Software Foundation, Inc. 2 Copyright (C) 2001-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
183 183
184 /* Return an estimate of the frequency of execution of block bb. */ 184 /* Return an estimate of the frequency of execution of block bb. */
185 static int 185 static int
186 basic_block_freq (const_basic_block bb) 186 basic_block_freq (const_basic_block bb)
187 { 187 {
188 return bb->frequency; 188 return bb->count.to_frequency (cfun);
189 } 189 }
190 190
191 /* If the rtx at *XP references (sets or reads) any branch target 191 /* If the rtx at *XP references (sets or reads) any branch target
192 register, return one such register. If EXCLUDEP is set, disregard 192 register, return one such register. If EXCLUDEP is set, disregard
193 any references within that location. */ 193 any references within that location. */