http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58978
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #6) > Created attachment 31148 [details] > gcc49-pr58978.patch > > While your patch will work too, I think it is better to fix it differently, > the problem is that single_imm_use modifies the use_stmt argument even if it > returns false, which I didn't expect. Yeah, that looks good to me.