aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authorPaolo Carlini <paolo@gcc.gnu.org>2009-11-24 15:30:01 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2009-11-24 15:30:01 +0000
commit6e0b03f5855ae33c0e25d723c5cfc0f2dbc6698f (patch)
tree335059c6af0f4cc30f661b4446e42edb898d2227 /gcc/cfgrtl.c
parent8aea79e6c91d187cc64058e615d0c8347dd79b63 (diff)
downloadgcc-6e0b03f5855ae33c0e25d723c5cfc0f2dbc6698f.zip
gcc-6e0b03f5855ae33c0e25d723c5cfc0f2dbc6698f.tar.gz
gcc-6e0b03f5855ae33c0e25d723c5cfc0f2dbc6698f.tar.bz2
dwarf2out.c (add_location_or_const_value_attribute): Remove useless NOTE_VAR_LOCATION_STATUS call.
2009-11-24 Paolo Carlini <paolo.carlini@oracle.com> * dwarf2out.c (add_location_or_const_value_attribute): Remove useless NOTE_VAR_LOCATION_STATUS call. * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy. From-SVN: r154501
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 71c1540..16cbab4 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -1504,20 +1504,11 @@ commit_one_edge_insertion (edge e)
&& targetm.have_named_sections
&& e->src != ENTRY_BLOCK_PTR
&& BB_PARTITION (e->src) == BB_COLD_PARTITION
- && !(e->flags & EDGE_CROSSING))
- {
- rtx cur_insn;
-
- for (cur_insn = BB_HEAD (bb); cur_insn != NEXT_INSN (BB_END (bb));
- cur_insn = NEXT_INSN (cur_insn))
- if (NOTE_INSN_BASIC_BLOCK_P (cur_insn))
- break;
-
- if (JUMP_P (BB_END (bb))
- && !any_condjump_p (BB_END (bb))
- && (single_succ_edge (bb)->flags & EDGE_CROSSING))
- add_reg_note (BB_END (bb), REG_CROSSING_JUMP, NULL_RTX);
- }
+ && !(e->flags & EDGE_CROSSING)
+ && JUMP_P (after)
+ && !any_condjump_p (after)
+ && (single_succ_edge (bb)->flags & EDGE_CROSSING))
+ add_reg_note (after, REG_CROSSING_JUMP, NULL_RTX);
}
}