Commit b2ff44a8 by Jan Hubicka Committed by Jan Hubicka

cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE fixpoint arithmetics.


	* cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
	fixpoint arithmetics.

From-SVN: r250242
parent 77ba27b4
2017-07-16 Jan Hubicka <hubicka@ucw.cz>
* cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
fixpoint arithmetics.
2017-07-16 Jan Hubicka <hubicka@ucw.cz>
* tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
fixpoint arithmetics.
......
......@@ -546,8 +546,8 @@ scale_loop_profile (struct loop *loop, profile_probability p,
/* Probability of exit must be 1/iterations. */
freq_delta = EDGE_FREQUENCY (e);
e->probability = profile_probability::from_reg_br_prob_base
(REG_BR_PROB_BASE / iteration_bound);
e->probability = profile_probability::always ()
.apply_scale (1, iteration_bound);
other_e->probability = e->probability.invert ();
freq_delta -= EDGE_FREQUENCY (e);
......
Markdown is supported
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