http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56117
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-28 08:51:39 UTC --- Created attachment 29289 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29289 gcc48-pr56117.patch Untested fix. For MEMs, sched-deps.c is calling cselib_lookup_from_insn, but for PREFETCH it wasn't doing that. As this is before cselib_process_insn is called, some REGs mentioned in the pattern might be never looked up yet at that point.