From 32aa77d97d8dacbcfdefe3b3ac9986dfbdecea36 Mon Sep 17 00:00:00 2001 From: tbsaunde Date: Thu, 9 Jul 2015 02:51:09 +0000 Subject: reduce conditional compilation based on AUTO_INC_DEC gcc/ChangeLog: 2015-07-08 Trevor Saunders * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value of AUTO_INC_DEC with the preprocessor. * combine.c (combine_instructions): Likewise. (can_combine_p): Likewise. (try_combine): Likewise. * emit-rtl.c (try_split): Likewise. * loop-invariant.c (calculate_loop_reg_pressure): Likewise. * lower-subreg.c (resolve_simple_move): Likewise. * lra.c (update_inc_notes): Likewise. * recog.c (asm_operand_ok): Likewise. (constrain_operands): Likewise. * regrename.c (scan_rtx_address): Likewise. * reload.c (update_auto_inc_notes): Likewise. (reg_inc_found_and_valid_p): Likewise. * reload1.c (reload): Likewise. (emit_input_reload_insns): Likewise. (delete_output_reload): Likewise. * sched-deps.c (init_insn_reg_pressure_info): Likewise. * valtrack.c (cleanup_auto_inc_dec): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225596 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/lra.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gcc/lra.c') diff --git a/gcc/lra.c b/gcc/lra.c index ce88d8f0e37..cb7013088bc 100644 --- a/gcc/lra.c +++ b/gcc/lra.c @@ -2088,7 +2088,6 @@ has_nonexceptional_receiver (void) return false; } -#if AUTO_INC_DEC /* Process recursively X of INSN and add REG_INC notes if necessary. */ static void @@ -2116,7 +2115,6 @@ add_auto_inc_notes (rtx_insn *insn, rtx x) } } -#endif /* Remove all REG_DEAD and REG_UNUSED notes and regenerate REG_INC. We change pseudos by hard registers without notification of DF and @@ -2143,9 +2141,9 @@ update_inc_notes (void) else pnote = &XEXP (*pnote, 1); } -#if AUTO_INC_DEC - add_auto_inc_notes (insn, PATTERN (insn)); -#endif + + if (AUTO_INC_DEC) + add_auto_inc_notes (insn, PATTERN (insn)); } } -- cgit v1.2.1