OSDN Git Service

* ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Sep 2011 16:49:17 +0000 (16:49 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Sep 2011 16:49:17 +0000 (16:49 +0000)
commit0217cfffc7f489491b9929313d263c26dfdd9b13
tree6381eca87c4993fc200ec70c432192fd905c402e
parent0c7d50da7c3898cd1feff262bda8e4ca04728bc0
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179284 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ifcvt.c