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
This commit is contained in:
Toshiyasu Morita 2001-06-22 22:08:51 +00:00 committed by Richard Henderson
parent 8b54e86833
commit 1b28186a60
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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);
}
}