aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2012-10-10 10:41:39 +0000
committerJakub Jelinek <jakub@redhat.com>2012-10-10 10:41:39 +0000
commit01f0c19e4cb9be9893b91189d5e9bc56630826ec (patch)
tree5e750c1661b29e066a2b3b09a6ce9deefc8891ec /gcc/combine.c
parent319c3d84439fa6354e5b764354e8836b8f3bfa04 (diff)
PR middle-end/54879
* combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH instead of '2' resp. 'c' for GET_RTX_CLASS comparisons. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@192303 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 4e0a57963dc..c13d00408ad 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -12015,8 +12015,8 @@ count_rtxs (rtx x)
const char *fmt;
int i, j, ret = 1;
- if (GET_RTX_CLASS (code) == '2'
- || GET_RTX_CLASS (code) == 'c')
+ if (GET_RTX_CLASS (code) == RTX_BIN_ARITH
+ || GET_RTX_CLASS (code) == RTX_COMM_ARITH)
{
rtx x0 = XEXP (x, 0);
rtx x1 = XEXP (x, 1);
@@ -12024,15 +12024,15 @@ count_rtxs (rtx x)
if (x0 == x1)
return 1 + 2 * count_rtxs (x0);
- if ((GET_RTX_CLASS (GET_CODE (x1)) == '2'
- || GET_RTX_CLASS (GET_CODE (x1)) == 'c')
+ if ((GET_RTX_CLASS (GET_CODE (x1)) == RTX_BIN_ARITH
+ || GET_RTX_CLASS (GET_CODE (x1)) == RTX_COMM_ARITH)
&& (x0 == XEXP (x1, 0) || x0 == XEXP (x1, 1)))
return 2 + 2 * count_rtxs (x0)
+ count_rtxs (x == XEXP (x1, 0)
? XEXP (x1, 1) : XEXP (x1, 0));
- if ((GET_RTX_CLASS (GET_CODE (x0)) == '2'
- || GET_RTX_CLASS (GET_CODE (x0)) == 'c')
+ if ((GET_RTX_CLASS (GET_CODE (x0)) == RTX_BIN_ARITH
+ || GET_RTX_CLASS (GET_CODE (x0)) == RTX_COMM_ARITH)
&& (x1 == XEXP (x0, 0) || x1 == XEXP (x0, 1)))
return 2 + 2 * count_rtxs (x1)
+ count_rtxs (x == XEXP (x0, 0)