https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100513
--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #14) > If you want to avoid that > if (lhs && TREE_CODE (lhs) == SSA_NAME) > SSA_NAME_DEF_STMT (lhs) = gs; > in gimple_call_set_lhs, I think it deserves a comment and probably > *gimple_call_lhs_ptr (new_stmt) = lhs; > would be cleaner than gimple_set_op (new_stmt, 0, lhs); Good point. Note I'm not (yet) testing the patch.