http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53975
Alexander Monakov <amonakov at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abel at gcc dot gnu.org --- Comment #10 from Alexander Monakov <amonakov at gcc dot gnu.org> 2012-07-19 17:50:07 UTC --- AFAICS speculating an assignment to a branch register should be rejected by sched_insn_is_legitimate_for_speculation_p in sched-deps.c, but it does not fall into any of the cases tested there. Consequently, I suppose it's not specific to sel-sched, just haifa schedules those regions differently and does not produce those speculative loads. I wonder how this bug managed to stay latent all these years :)