diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-03-30 09:11:19 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2009-03-30 09:11:19 +0000 |
commit | fedc17754e0f57b2f7b0e3f2d73275887b1ac7fd (patch) | |
tree | 379b404a62228e3db7adc84f3a8d869fcd833ffa /gcc/dojump.c | |
parent | 65c5ae8b1d8c9f86dd398f0c0313598fb5172f02 (diff) | |
download | gcc-fedc17754e0f57b2f7b0e3f2d73275887b1ac7fd.tar.gz |
combine.c (simplify_comparison): Use have_insn_for.
2009-03-30 Paolo Bonzini <bonzini@gnu.org>
* combine.c (simplify_comparison): Use have_insn_for.
* dojump.c (do_jump): Likewise.
From-SVN: r145285
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r-- | gcc/dojump.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c index 060eb51e77e..715e7373eee 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -257,8 +257,7 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) if (! SLOW_BYTE_ACCESS && type != 0 && bitsize >= 0 && TYPE_PRECISION (type) < TYPE_PRECISION (TREE_TYPE (exp)) - && (optab_handler (cmp_optab, TYPE_MODE (type))->insn_code - != CODE_FOR_nothing)) + && have_insn_for (COMPARE, TYPE_MODE (type))) { do_jump (fold_convert (type, exp), if_false_label, if_true_label); break; @@ -499,8 +498,7 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) && (mode = mode_for_size (i + 1, MODE_INT, 0)) != BLKmode && (type = lang_hooks.types.type_for_mode (mode, 1)) != 0 && TYPE_PRECISION (type) < TYPE_PRECISION (TREE_TYPE (exp)) - && (optab_handler (cmp_optab, TYPE_MODE (type))->insn_code - != CODE_FOR_nothing)) + && have_insn_for (COMPARE, TYPE_MODE (type))) { do_jump (fold_convert (type, exp), if_false_label, if_true_label); break; |