Commit 01565a55 by Richard Kenner

(reg_scan): Don't call reg_scan_mark_refs on notes if there aren't any.

(reg_scan_mark_refs, case INSN_LIST, EXPR_LIST): New cases.

From-SVN: r5733
parent d969caf8
...@@ -1539,7 +1539,9 @@ reg_scan (f, nregs, repeat) ...@@ -1539,7 +1539,9 @@ reg_scan (f, nregs, repeat)
&& XVECLEN (PATTERN (insn), 0) > max_parallel) && XVECLEN (PATTERN (insn), 0) > max_parallel)
max_parallel = XVECLEN (PATTERN (insn), 0); max_parallel = XVECLEN (PATTERN (insn), 0);
reg_scan_mark_refs (PATTERN (insn), insn, 0); reg_scan_mark_refs (PATTERN (insn), insn, 0);
reg_scan_mark_refs (REG_NOTES (insn), insn, 1);
if (REG_NOTES (insn))
reg_scan_mark_refs (REG_NOTES (insn), insn, 1);
} }
} }
...@@ -1581,6 +1583,17 @@ reg_scan_mark_refs (x, insn, note_flag) ...@@ -1581,6 +1583,17 @@ reg_scan_mark_refs (x, insn, note_flag)
} }
break; break;
case EXPR_LIST:
reg_scan_mark_refs (XEXP (x, 0), insn, note_flag);
if (XEXP (x, 1))
reg_scan_mark_refs (XEXP (x, 1), insn, note_flag);
break;
case INSN_LIST:
if (XEXP (x, 1))
reg_scan_mark_refs (XEXP (x, 1), insn, note_flag);
break;
case SET: case SET:
/* Count a set of the destination if it is a register. */ /* Count a set of the destination if it is a register. */
for (dest = SET_DEST (x); for (dest = SET_DEST (x);
......
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