Commit 00dcfe80 by Alan Modra Committed by Alan Modra

reload1.c (reload_as_needed): Allow a USE in asm reloads.

	* reload1.c (reload_as_needed): Allow a USE in asm reloads.

	* loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.

From-SVN: r64991
parent d869a8c4
2003-03-29 Alan Modra <amodra@bigpond.net.au>
* reload1.c (reload_as_needed): Allow a USE in asm reloads.
* loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org> 2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Clarify comments. * configure.in: Clarify comments.
......
...@@ -10400,6 +10400,8 @@ try_swap_copy_prop (loop, replacement, regno) ...@@ -10400,6 +10400,8 @@ try_swap_copy_prop (loop, replacement, regno)
} }
} }
/* Worker function for find_mem_in_note, called via for_each_rtx. */
static int static int
find_mem_in_note_1 (x, data) find_mem_in_note_1 (x, data)
rtx *x; rtx *x;
...@@ -10414,6 +10416,8 @@ find_mem_in_note_1 (x, data) ...@@ -10414,6 +10416,8 @@ find_mem_in_note_1 (x, data)
return 0; return 0;
} }
/* Returns the first MEM found in NOTE by depth-first search. */
static rtx static rtx
find_mem_in_note (note) find_mem_in_note (note)
rtx note; rtx note;
......
...@@ -3940,6 +3940,7 @@ reload_as_needed (live_known) ...@@ -3940,6 +3940,7 @@ reload_as_needed (live_known)
if (asm_noperands (PATTERN (insn)) >= 0) if (asm_noperands (PATTERN (insn)) >= 0)
for (p = NEXT_INSN (prev); p != next; p = NEXT_INSN (p)) for (p = NEXT_INSN (prev); p != next; p = NEXT_INSN (p))
if (p != insn && INSN_P (p) if (p != insn && INSN_P (p)
&& GET_CODE (PATTERN (p)) != USE
&& (recog_memoized (p) < 0 && (recog_memoized (p) < 0
|| (extract_insn (p), ! constrain_operands (1)))) || (extract_insn (p), ! constrain_operands (1))))
{ {
......
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