ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.
commit16a275d29d4273bf6a0530b2f6d721a745c921cc
authorJeff Law <law@redhat.com>
Tue, 27 Sep 2011 16:49:17 +0000 (27 10:49 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 27 Sep 2011 16:49:17 +0000 (27 10:49 -0600)
tree6381eca87c4993fc200ec70c432192fd905c402e
parent9b7ab6d6e016c89bf22322a95772786a14739465
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
gcc/ChangeLog
gcc/ifcvt.c