diff options
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r-- | gcc/loop-iv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index ccc239a..97cfdf7 100644 --- a/gcc/loop-iv.c +++ b/gcc/loop-iv.c @@ -1469,7 +1469,7 @@ simplify_using_condition (rtx cond, rtx *expr, regset altered) { rtx rev, reve, exp = *expr; - if (GET_RTX_CLASS (GET_CODE (*expr)) != '<') + if (!COMPARISON_P (exp)) return; /* If some register gets altered later, we do not really speak about its @@ -1894,7 +1894,7 @@ iv_number_of_iterations (struct loop *loop, rtx insn, rtx condition, desc->niter_max = 0; cond = GET_CODE (condition); - if (GET_RTX_CLASS (cond) != '<') + if (!COMPARISON_P (condition)) abort (); mode = GET_MODE (XEXP (condition, 0)); |