* predict.c (expected_value_to_br_prob): Use pc_set.

From-SVN: r45738
This commit is contained in:
Richard Henderson 2001-09-21 13:43:54 -07:00 committed by Richard Henderson
parent ee1315aa92
commit 24ee7caee0
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2001-09-21 Richard Henderson <rth@redhat.com>
* predict.c (expected_value_to_br_prob): Use pc_set.
* optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.

View File

@ -573,7 +573,7 @@ expected_value_to_br_prob ()
as canonicalize_condition will render this to us as
(lt r70, r71)
Could use cselib to try and reduce this further. */
cond = XEXP (SET_SRC (PATTERN (insn)), 0);
cond = XEXP (SET_SRC (pc_set (insn)), 0);
cond = canonicalize_condition (insn, cond, 0, NULL, ev_reg);
if (! cond
|| XEXP (cond, 0) != ev_reg