Commit 42fa3cfb by Jim Wilson

(find_basic_blocks): Also look for REG_LABEL notes on first

instruction of each basic block.

From-SVN: r6500
parent 99c7b2f6
...@@ -468,13 +468,16 @@ find_basic_blocks (f, nonlocal_label_list) ...@@ -468,13 +468,16 @@ find_basic_blocks (f, nonlocal_label_list)
{ {
basic_block_end[i] = insn; basic_block_end[i] = insn;
basic_block_loop_depth[i] = depth; basic_block_loop_depth[i] = depth;
}
if (GET_RTX_CLASS (code) == 'i')
{
/* Make a list of all labels referred to other than by jumps. */ /* Make a list of all labels referred to other than by jumps. */
for (note = REG_NOTES (insn); note; note = XEXP (note, 1)) for (note = REG_NOTES (insn); note; note = XEXP (note, 1))
if (REG_NOTE_KIND (note) == REG_LABEL) if (REG_NOTE_KIND (note) == REG_LABEL)
label_value_list = gen_rtx (EXPR_LIST, VOIDmode, XEXP (note, 0), label_value_list = gen_rtx (EXPR_LIST, VOIDmode, XEXP (note, 0),
label_value_list); label_value_list);
} }
BLOCK_NUM (insn) = i; BLOCK_NUM (insn) = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment