diff options
author | Martin Liska <mliska@suse.cz> | 2017-11-15 08:11:59 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-11-15 07:11:59 +0000 |
commit | 6463f681f8d328283af90c10948240d06e952f7b (patch) | |
tree | 4cfe94ef9a82e8bd436cc792743c645d4baa783b /gcc/config/sh/sh-mem.cc | |
parent | 896f6b3dfa6fb337109f97bed8d74c1e030c965e (diff) | |
download | gcc-6463f681f8d328283af90c10948240d06e952f7b.tar.gz |
Use proper probability (PR target/82927)
2017-11-15 Martin Liska <mliska@suse.cz>
PR target/82927
* config/sh/sh-mem.cc: Use proper probability for
REG_BR_PROB_NOTE.
From-SVN: r254755
Diffstat (limited to 'gcc/config/sh/sh-mem.cc')
-rw-r--r-- | gcc/config/sh/sh-mem.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/sh/sh-mem.cc b/gcc/config/sh/sh-mem.cc index 8fce9799921..4c33260d84e 100644 --- a/gcc/config/sh/sh-mem.cc +++ b/gcc/config/sh/sh-mem.cc @@ -183,8 +183,12 @@ expand_block_move (rtx *operands) return false; } -static const int prob_unlikely = REG_BR_PROB_BASE / 10; -static const int prob_likely = REG_BR_PROB_BASE / 4; +static const int prob_unlikely + = profile_probability::from_reg_br_prob_base (REG_BR_PROB_BASE / 10) + .to_reg_br_prob_note (); +static const int prob_likely + = profile_probability::from_reg_br_prob_base (REG_BR_PROB_BASE / 4) + .to_reg_br_prob_note (); /* Emit code to perform a strcmp. |