diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2015-04-22 00:44:20 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-04-22 00:44:20 +0000 |
commit | 176cb568dc6fd770ccf31a99c15c0b317d1ec1cb (patch) | |
tree | 5afe24eb4c7708ff27bd15ed8eebe837b174c982 /gcc/simplify-rtx.c | |
parent | 8a90eeb6a839e92d0ae6800cb4ba25ca864b0076 (diff) | |
download | gcc-176cb568dc6fd770ccf31a99c15c0b317d1ec1cb.zip gcc-176cb568dc6fd770ccf31a99c15c0b317d1ec1cb.tar.gz gcc-176cb568dc6fd770ccf31a99c15c0b317d1ec1cb.tar.bz2 |
remove more ifdef HAVE_cc0
gcc/ChangeLog:
2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
that is trivially ded on non cc0 targets.
(simplify_set): Likewise.
(mark_used_regs_combine): Likewise.
* cse.c (new_basic_block): Likewise.
(fold_rtx): Likewise.
(cse_insn): Likewise.
(cse_extended_basic_block): Likewise.
(set_live_p): Likewise.
* rtlanal.c (canonicalize_condition): Likewise.
* simplify-rtx.c (simplify_binary_operation_1): Likewise.
From-SVN: r222295
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 4b18d3c..b85ef99 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -2180,15 +2180,14 @@ simplify_binary_operation_1 (enum rtx_code code, machine_mode mode, rtx xop00 = XEXP (op0, 0); rtx xop10 = XEXP (op1, 0); -#ifdef HAVE_cc0 if (GET_CODE (xop00) == CC0 && GET_CODE (xop10) == CC0) -#else + return xop00; + if (REG_P (xop00) && REG_P (xop10) && GET_MODE (xop00) == GET_MODE (xop10) && REGNO (xop00) == REGNO (xop10) && GET_MODE_CLASS (GET_MODE (xop00)) == MODE_CC && GET_MODE_CLASS (GET_MODE (xop10)) == MODE_CC) -#endif return xop00; } break; |