re PR rtl-optimization/56005 (FAIL: gcc.target/i386/pr45352.c (internal compiler error))

2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/56005
	* sched-deps.c (sched_analyze_2): Check deps->readonly for adding
	pending reads for prefetch.

From-SVN: r195247
This commit is contained in:
Vladimir Makarov 2013-01-16 18:27:58 +00:00 committed by Vladimir Makarov
parent 20f36478dc
commit 79f01c76e0
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/56005
* sched-deps.c (sched_analyze_2): Check deps->readonly for adding
pending reads for prefetch.
2013-01-16 Ian Bolton <ian.bolton@arm.com>
* gcc/config/aarch64/aarch64.md

View File

@ -2719,8 +2719,9 @@ sched_analyze_2 (struct deps_desc *deps, rtx x, rtx insn)
to generate accurate dependencies for prefetch insns as
prefetch has only the start address but it is better to have
something than nothing. */
add_insn_mem_dependence (deps, true, insn,
gen_rtx_MEM (Pmode, XEXP (PATTERN (insn), 0)));
if (!deps->readonly)
add_insn_mem_dependence (deps, true, insn,
gen_rtx_MEM (Pmode, XEXP (PATTERN (insn), 0)));
break;
case UNSPEC_VOLATILE: