diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-09 19:43:10 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-09 19:43:10 +0000 |
commit | 018f0595d4f663d5729a4cf29567feb8f92695de (patch) | |
tree | a80e3d0754d775d696f7dd9afc3cf5fabbf319bb /gcc/cfgrtl.c | |
parent | 2f7233cb6381c4b20bb0b512cafb9418baa6547e (diff) | |
download | gcc-018f0595d4f663d5729a4cf29567feb8f92695de.tar.gz |
gcc/
* sched-int.h (bb_note): Move to...
* basic-block.h: ...here.
* haifa-sched.c (bb_note): Move to...
* cfgrtl.c: ...here.
* function.c (next_block_for_reg): New function.
(move_insn_for_shrink_wrap): Likewise.
(prepare_shrink_wrap): Rewrite to use the above.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183028 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 635955b7990..9312a4b69f1 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -500,6 +500,20 @@ update_bb_for_insn (basic_block bb) } +/* Return the NOTE_INSN_BASIC_BLOCK of BB. */ +rtx +bb_note (basic_block bb) +{ + rtx note; + + note = BB_HEAD (bb); + if (LABEL_P (note)) + note = NEXT_INSN (note); + + gcc_assert (NOTE_INSN_BASIC_BLOCK_P (note)); + return note; +} + /* Return the INSN immediately following the NOTE_INSN_BASIC_BLOCK note associated with the BLOCK. */ |