aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-11-15 08:11:59 +0100
committerMartin Liska <marxin@gcc.gnu.org>2017-11-15 07:11:59 +0000
commit6463f681f8d328283af90c10948240d06e952f7b (patch)
tree4cfe94ef9a82e8bd436cc792743c645d4baa783b /gcc/config/sh
parent896f6b3dfa6fb337109f97bed8d74c1e030c965e (diff)
downloadgcc-6463f681f8d328283af90c10948240d06e952f7b.zip
gcc-6463f681f8d328283af90c10948240d06e952f7b.tar.gz
gcc-6463f681f8d328283af90c10948240d06e952f7b.tar.bz2
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')
-rw-r--r--gcc/config/sh/sh-mem.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/sh/sh-mem.cc b/gcc/config/sh/sh-mem.cc
index 8fce979..4c33260 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.