http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56005
--- Comment #3 from Vladimir Makarov <vmakarov at gcc dot gnu.org> 2013-01-16 16:39:21 UTC --- (In reply to comment #1) > See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55153#c4 > Let's close PR55153 as fixed and keep this PR to track the regression the fix > caused. Sorry, I forgot about selective scheduler which uses deps->readonly mechanism for its own purposes. The fix is really easy. It is just adding an if-cond when prefetch is added. if (!deps->readonly) add_insn_mem_dependence (deps, true, insn, gen_rtx_MEM (Pmode, XEXP (PATTERN (insn), 0))); I'll submit the patch today.