diff options
Diffstat (limited to 'gcc/lra.c')
-rw-r--r-- | gcc/lra.c | 31 |
1 files changed, 8 insertions, 23 deletions
@@ -1199,30 +1199,22 @@ lra_update_insn_recog_data (rtx_insn *insn) decode_asm_operands (PATTERN (insn), NULL, data->operand_loc, constraints, operand_mode, NULL); -#ifdef ENABLE_CHECKING - { - int i; - for (i = 0; i < nop; i++) + if (flag_checking) + for (int i = 0; i < nop; i++) lra_assert (insn_static_data->operand[i].mode == operand_mode[i] && insn_static_data->operand[i].constraint == constraints[i] && ! insn_static_data->operand[i].is_operator); - } -#endif } -#ifdef ENABLE_CHECKING - { - int i; - for (i = 0; i < insn_static_data->n_operands; i++) + if (flag_checking) + for (int i = 0; i < insn_static_data->n_operands; i++) lra_assert (insn_static_data->operand[i].type == (insn_static_data->operand[i].constraint[0] == '=' ? OP_OUT : insn_static_data->operand[i].constraint[0] == '+' ? OP_INOUT : OP_IN)); - } -#endif } else { @@ -2004,8 +1996,6 @@ restore_scratches (void) -#ifdef ENABLE_CHECKING - /* Function checks RTL for correctness. If FINAL_P is true, it is done at the end of LRA and the check is more rigorous. */ static void @@ -2024,9 +2014,7 @@ check_rtl (bool final_p) { if (final_p) { -#ifdef ENABLED_CHECKING extract_constrain_insn (insn); -#endif continue; } /* LRA code is based on assumption that all addresses can be @@ -2039,7 +2027,6 @@ check_rtl (bool final_p) fatal_insn_not_found (insn); } } -#endif /* #ifdef ENABLE_CHECKING */ /* Determine if the current function has an exception receiver block that reaches the exit block via non-exceptional edges */ @@ -2233,10 +2220,9 @@ lra (FILE *f) init_insn_recog_data (); -#ifdef ENABLE_CHECKING /* Some quick check on RTL generated by previous passes. */ - check_rtl (false); -#endif + if (flag_checking) + check_rtl (false); lra_in_progress = 1; @@ -2437,9 +2423,8 @@ lra (FILE *f) by this, so unshare everything here. */ unshare_all_rtl_again (get_insns ()); -#ifdef ENABLE_CHECKING - check_rtl (true); -#endif + if (flag_checking) + check_rtl (true); timevar_pop (TV_LRA); } |