Commit eaee22dd authored by Sebastian Hack's avatar Sebastian Hack
Browse files

Fixed a bug concerning integer translation

[r8184]
parent e32a7ad5
......@@ -275,13 +275,13 @@ compute_execfreq(ir_graph * irg, double loop_weight)
/* compute m and b of the transformation used to convert the doubles into scaled ints */
{
/* double l1 = 1; */
double l1 = 1.0;
double h1 = MAX_INT_FREQ;
double l2 = ef->min_non_zero;
double h2 = ef->max;
ef->m = (h1 /* - l1 */) / (h2 - l2);
ef->b = (/* l1 * */ h2 - l2 * h1) / (h2 - l2);
ef->m = (h1 - l1) / (h2 - l2);
ef->b = (l1 * h2 - l2 * h1) / (h2 - l2);
}
#ifdef USE_GSL
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment