diff options
author | Jie Zhang <jie.zhang@analog.com> | 2009-09-15 09:10:51 +0000 |
---|---|---|
committer | Jie Zhang <jiez@gcc.gnu.org> | 2009-09-15 09:10:51 +0000 |
commit | e5e447966658e7be35927f8ba65b20933b052b26 (patch) | |
tree | d84883b4de6d619422bcf600178ddd58f2dd29e4 | |
parent | 6dac2e8ef755d3e6ed06bdf9fabb799cadcd17cd (diff) | |
download | gcc-e5e447966658e7be35927f8ba65b20933b052b26.zip gcc-e5e447966658e7be35927f8ba65b20933b052b26.tar.gz gcc-e5e447966658e7be35927f8ba65b20933b052b26.tar.bz2 |
bfin.c (length_for_loop): Use NONDEBUG_INSN_P instead of INSN_P.
* config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
instead of INSN_P.
(bfin_optimize_loop): Likewise.
(bfin_gen_bundles): Likewise.
(workaround_speculation): Likewise.
(find_load): Return NULL_RTX for debug_insn.
From-SVN: r151712
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.c | 12 |
2 files changed, 16 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b57874..1b36f26 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2009-09-15 Jie Zhang <jie.zhang@analog.com> + + * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P + instead of INSN_P. + (bfin_optimize_loop): Likewise. + (bfin_gen_bundles): Likewise. + (workaround_speculation): Likewise. + (find_load): Return NULL_RTX for debug_insn. + 2009-09-15 Uros Bizjak <ubizjak@gmail.com> * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode. diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index bb679ea..92aaf57 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -3836,7 +3836,7 @@ length_for_loop (rtx insn) length = 4; } - if (INSN_P (insn)) + if (NONDEBUG_INSN_P (insn)) length += get_attr_length (insn); return length; @@ -4073,7 +4073,7 @@ bfin_optimize_loop (loop_info loop) { for (; last_insn != BB_HEAD (bb); last_insn = find_prev_insn_start (last_insn)) - if (INSN_P (last_insn)) + if (NONDEBUG_INSN_P (last_insn)) break; if (last_insn != BB_HEAD (bb)) @@ -4837,7 +4837,7 @@ bfin_gen_bundles (void) int at_end; rtx delete_this = NULL_RTX; - if (INSN_P (insn)) + if (NONDEBUG_INSN_P (insn)) { enum attr_type type = get_attr_type (insn); @@ -5091,6 +5091,8 @@ trapping_loads_p (rtx insn, int np_reg, bool after_np_branch) static rtx find_load (rtx insn) { + if (!NONDEBUG_INSN_P (insn)) + return NULL_RTX; if (get_attr_type (insn) == TYPE_MCLD) return insn; if (GET_MODE (insn) != SImode) @@ -5211,7 +5213,7 @@ workaround_speculation (void) delay_needed = 3; } } - else if (INSN_P (insn)) + else if (NONDEBUG_INSN_P (insn)) { rtx load_insn = find_load (insn); enum attr_type type = type_for_anomaly (insn); @@ -5324,7 +5326,7 @@ workaround_speculation (void) || GET_CODE (pat) == ADDR_DIFF_VEC || asm_noperands (pat) >= 0) continue; - if (INSN_P (target)) + if (NONDEBUG_INSN_P (target)) { rtx load_insn = find_load (target); enum attr_type type = type_for_anomaly (target); |