OSDN Git Service

* predict.c (expected_value_to_br_prob): Use pc_set.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Sep 2001 20:43:54 +0000 (20:43 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Sep 2001 20:43:54 +0000 (20:43 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45738 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/predict.c

index 69bc75f..ceda15c 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 df69e94..42d7795 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