http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59208
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #7) > Created attachment 31322 [details] > Proposed fix I am testing > > Hi, > the problem here is that update_stmt is called with cfun being set to NULL. > It uses ssa_operands_active (cfun) call that return false. > This patch makes us to set cfun correctly when updating the function body. > > It may be interesting to investigate why some testcases fails on PPC and not > on x86 - they may be cases where we missed devirtualization during early > optimization but for whatever reason we now handle it during IPA > > Honza Argh. I'll try to add a update_stmt_fn.