* predict.c (expected_value_to_br_prob): Use pc_set.
authorRichard Henderson <rth@redhat.com>
Fri, 21 Sep 2001 20:43:54 +0000 (13:43 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 21 Sep 2001 20:43:54 +0000 (13:43 -0700)
From-SVN: r45738

gcc/ChangeLog
gcc/predict.c

index 69bc75f007fc26a9b280c1af4809a4c879508b8e..ceda15c5b4f780a47efef0bb3b80649c97afb5a6 100644 (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.
 
index df69e943a5070f55a5492b84c2f3f64e28402f6e..42d7795a01eb7cff653d8316db3888891fceea3e 100644 (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