summaryrefslogtreecommitdiff
path: root/gcc/lra.c
diff options
context:
space:
mode:
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-09 02:51:09 +0000
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-09 02:51:09 +0000
commit32aa77d97d8dacbcfdefe3b3ac9986dfbdecea36 (patch)
tree3b2f06358a06111a3171d4f07399d8b62fc9689d /gcc/lra.c
parent7ff2eb86cd8ef7a506535a0a1890b021a1f720ed (diff)
downloadgcc-32aa77d97d8dacbcfdefe3b3ac9986dfbdecea36.tar.gz
reduce conditional compilation based on AUTO_INC_DEC
gcc/ChangeLog: 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * 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
Diffstat (limited to 'gcc/lra.c')
-rw-r--r--gcc/lra.c8
1 files changed, 3 insertions, 5 deletions
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));
}
}