Commit 301a8f95 by Zdenek Dvorak Committed by Zdenek Dvorak

re PR rtl-optimization/22509 (elemental.f90 testsuite failure (-fweb))

	PR rtl-optimization/22509
	* local-alloc.c (memref_used_between_p): Check whether a function call
	could not reference the memref.

From-SVN: r106783
parent 8a4c09c8
2005-11-11 Zdenek Dvorak <dvorakz@suse.cz>
PR rtl-optimization/22509
* local-alloc.c (memref_used_between_p): Check whether a function call
could not reference the memref.
2005-11-11 Ulrich Weigand <uweigand@de.ibm.com> 2005-11-11 Ulrich Weigand <uweigand@de.ibm.com>
* postreload.c (reload_cse_simplify_operands): Fix bug in sorting * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
......
...@@ -762,8 +762,19 @@ memref_used_between_p (rtx memref, rtx start, rtx end) ...@@ -762,8 +762,19 @@ memref_used_between_p (rtx memref, rtx start, rtx end)
for (insn = NEXT_INSN (start); insn != NEXT_INSN (end); for (insn = NEXT_INSN (start); insn != NEXT_INSN (end);
insn = NEXT_INSN (insn)) insn = NEXT_INSN (insn))
if (INSN_P (insn) && memref_referenced_p (memref, PATTERN (insn))) {
return 1; if (!INSN_P (insn))
continue;
if (memref_referenced_p (memref, PATTERN (insn)))
return 1;
/* Nonconst functions may access memory. */
if (CALL_P (insn)
&& (! CONST_OR_PURE_CALL_P (insn)
|| pure_call_p (insn)))
return 1;
}
return 0; return 0;
} }
......
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