diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-09 20:04:10 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-09 20:04:10 +0000 |
commit | fc6ce27c03b66a30e70293d4a4ebed684a5065df (patch) | |
tree | 0169af2955472328d5f862f7396b198dfc82b215 /gcc/cfgcleanup.c | |
parent | f1b523fe77bddb69aca0162770e9f27efbda1897 (diff) | |
download | gcc-fc6ce27c03b66a30e70293d4a4ebed684a5065df.tar.gz |
* rtl.h (locator_eq): New decl.
* cfglayout.c (locator_scope): New function.
(insn_scope): Use it.
(locator_eq): New function.
(fixup_reorder_chain): Search for last insn in src bb
that has locator set or first insn in dest bb. Use
locator_eq instead of == to compare locators.
* cfgrtl.c (cfg_layout_merge_blocks): Likewise.
* cfgcleanup.c (try_forward_edges): Use locator_eq instead of
== to compare locators.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141009 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 8b9756def21..190bde66848 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -483,7 +483,7 @@ try_forward_edges (int mode, basic_block b) blocks with different locus are not optimized out. */ int locus = single_succ_edge (target)->goto_locus; - if (locus && goto_locus && locus != goto_locus) + if (locus && goto_locus && !locator_eq (locus, goto_locus)) counter = n_basic_blocks; else if (locus) goto_locus = locus; @@ -492,7 +492,8 @@ try_forward_edges (int mode, basic_block b) { locus = INSN_LOCATOR (BB_END (target)); - if (locus && goto_locus && locus != goto_locus) + if (locus && goto_locus + && !locator_eq (locus, goto_locus)) counter = n_basic_blocks; else if (locus) goto_locus = locus; |