aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>2001-06-22 22:08:51 +0000
committerRichard Henderson <rth@gcc.gnu.org>2001-06-22 15:08:51 -0700
commit1b28186a60548d3e4eb6db9cbe5c7bbae0bd47e3 (patch)
tree4df97aab0a95db47d0c7ec7a24b288fe8da6ae49
parent8b54e868330944efffb386910f9315a8db8753ce (diff)
downloadgcc-1b28186a60548d3e4eb6db9cbe5c7bbae0bd47e3.zip
gcc-1b28186a60548d3e4eb6db9cbe5c7bbae0bd47e3.tar.gz
gcc-1b28186a60548d3e4eb6db9cbe5c7bbae0bd47e3.tar.bz2
predict.c: (expected_value_to_br_prob): Check for const_true_rtx instead of const1_rtx for...
* predict.c: (expected_value_to_br_prob): Check for const_true_rtx instead of const1_rtx for true case. From-SVN: r43517
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/predict.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1b6a6892..323b21b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-06-22 Toshiyasu Morita (toshiyasu.morita@hsa.hitachi.com)
+
+ * predict.c: (expected_value_to_br_prob): Check for const_true_rtx
+ instead of const1_rtx for true case.
+
2001-06-22 David Mosberger <davidm@hpl.hp.com>
* config/ia64/crtfastmath.c: New file.
diff --git a/gcc/predict.c b/gcc/predict.c
index e511282..4b29e59 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -521,10 +521,10 @@ expected_value_to_br_prob ()
cond = simplify_rtx (cond);
/* Turn the condition into a scaled branch probability. */
- if (cond != const1_rtx && cond != const0_rtx)
+ if (cond != const_true_rtx && cond != const0_rtx)
abort ();
predict_insn_def (insn, PRED_BUILTIN_EXPECT,
- cond == const1_rtx ? TAKEN : NOT_TAKEN);
+ cond == const_true_rtx ? TAKEN : NOT_TAKEN);
}
}