Skip to content
Snippets Groups Projects
Commit 16a275d2 authored by Jeff Law's avatar Jeff Law Committed by Jeff Law
Browse files

ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.

	* ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
	non-jumping insns by REG_BR_PROB_BASE and the maximum cost
	by SCALE.
	(find_if_case_1): Use the probability of the THEN clause when
	determining if speculation is profitable.
	(find_if_case_2): Similarly for the ELSE clause.

From-SVN: r179284
parent 9b7ab6d6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment