aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorHerman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>2002-05-02 22:49:13 +0200
committerRichard Henderson <rth@gcc.gnu.org>2002-05-02 13:49:13 -0700
commit3d7a6309f88cf1221713a81fb7d6b44ac61aa515 (patch)
tree9a40262f3167d92db2d81d797dd62059777f99f4 /gcc/predict.c
parent13a9017819ce1590163dab91ef0cd5c208d39de3 (diff)
downloadgcc-3d7a6309f88cf1221713a81fb7d6b44ac61aa515.zip
gcc-3d7a6309f88cf1221713a81fb7d6b44ac61aa515.tar.gz
gcc-3d7a6309f88cf1221713a81fb7d6b44ac61aa515.tar.bz2
predict.c: (propagate_freq...
* predict.c: (propagate_freq, estimate_bb_frequencies): Use TYPE_MODE (double_type_node) instead of DFmode. From-SVN: r53064
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 3eece35..77f1a99 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -721,7 +721,8 @@ propagate_freq (head)
* BLOCK_INFO (e->src)->frequency /
REG_BR_PROB_BASE); */
- REAL_VALUE_FROM_INT (tmp, e->probability, 0, DFmode);
+ REAL_VALUE_FROM_INT (tmp, e->probability, 0,
+ TYPE_MODE (double_type_node));
REAL_ARITHMETIC (tmp, MULT_EXPR, tmp,
BLOCK_INFO (e->src)->frequency);
REAL_ARITHMETIC (tmp, RDIV_EXPR, tmp, real_br_prob_base);
@@ -751,7 +752,8 @@ propagate_freq (head)
/* EDGE_INFO (e)->back_edge_prob
= ((e->probability * BLOCK_INFO (bb)->frequency)
/ REG_BR_PROB_BASE); */
- REAL_VALUE_FROM_INT (tmp, e->probability, 0, DFmode);
+ REAL_VALUE_FROM_INT (tmp, e->probability, 0,
+ TYPE_MODE (double_type_node));
REAL_ARITHMETIC (tmp, MULT_EXPR, tmp,
BLOCK_INFO (bb)->frequency);
REAL_ARITHMETIC (EDGE_INFO (e)->back_edge_prob,
@@ -900,12 +902,13 @@ estimate_bb_frequencies (loops)
{
int i;
REAL_VALUE_TYPE freq_max;
+ enum machine_mode double_mode = TYPE_MODE (double_type_node);
- REAL_VALUE_FROM_INT (real_zero, 0, 0, DFmode);
- REAL_VALUE_FROM_INT (real_one, 1, 0, DFmode);
- REAL_VALUE_FROM_INT (real_br_prob_base, REG_BR_PROB_BASE, 0, DFmode);
- REAL_VALUE_FROM_INT (real_bb_freq_max, BB_FREQ_MAX, 0, DFmode);
- REAL_VALUE_FROM_INT (real_one_half, 2, 0, DFmode);
+ REAL_VALUE_FROM_INT (real_zero, 0, 0, double_mode);
+ REAL_VALUE_FROM_INT (real_one, 1, 0, double_mode);
+ REAL_VALUE_FROM_INT (real_br_prob_base, REG_BR_PROB_BASE, 0, double_mode);
+ REAL_VALUE_FROM_INT (real_bb_freq_max, BB_FREQ_MAX, 0, double_mode);
+ REAL_VALUE_FROM_INT (real_one_half, 2, 0, double_mode);
REAL_ARITHMETIC (real_one_half, RDIV_EXPR, real_one, real_one_half);
@@ -969,7 +972,7 @@ estimate_bb_frequencies (loops)
{
REAL_VALUE_FROM_INT (EDGE_INFO (e)->back_edge_prob,
- e->probability, 0, DFmode);
+ e->probability, 0, double_mode);
REAL_ARITHMETIC (EDGE_INFO (e)->back_edge_prob,
RDIV_EXPR, EDGE_INFO (e)->back_edge_prob,
real_br_prob_base);