aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2015-07-09 02:51:09 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-07-09 02:51:09 +0000
commit760edf20ba65b2d6b44a6a8c98683e4eb9490009 (patch)
tree3b2f06358a06111a3171d4f07399d8b62fc9689d /gcc/emit-rtl.c
parent16cb56686dba6e45ab5e19b86fbed7712e1e6501 (diff)
downloadgcc-760edf20ba65b2d6b44a6a8c98683e4eb9490009.zip
gcc-760edf20ba65b2d6b44a6a8c98683e4eb9490009.tar.gz
gcc-760edf20ba65b2d6b44a6a8c98683e4eb9490009.tar.bz2
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. From-SVN: r225596
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 1e8825e..93dd459 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -3588,7 +3588,6 @@ prev_cc0_setter (rtx_insn *insn)
return insn;
}
-#if AUTO_INC_DEC
/* Find a RTX_AUTOINC class rtx which matches DATA. */
static int
@@ -3604,7 +3603,6 @@ find_auto_inc (const_rtx x, const_rtx reg)
}
return false;
}
-#endif
/* Increment the label uses for all labels present in rtx. */
@@ -3776,8 +3774,10 @@ try_split (rtx pat, rtx_insn *trial, int last)
}
break;
-#if AUTO_INC_DEC
case REG_INC:
+ if (!AUTO_INC_DEC)
+ break;
+
for (insn = insn_last; insn != NULL_RTX; insn = PREV_INSN (insn))
{
rtx reg = XEXP (note, 0);
@@ -3786,7 +3786,6 @@ try_split (rtx pat, rtx_insn *trial, int last)
add_reg_note (insn, REG_INC, reg);
}
break;
-#endif
case REG_ARGS_SIZE:
fixup_args_size_notes (NULL, insn_last, INTVAL (XEXP (note, 0)));