https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118949
--- Comment #7 from Vineet Gupta <vineetg at gcc dot gnu.org> --- I can confirm that it is happening due to following hunk from r15-5943-gdc0dea98c96e02 bool ssa_is_replaceable_p (gimple *stmt) { if (!is_gimple_assign (stmt)) #if 0 && (!(call = dyn_cast <gcall *> (stmt)) || gimple_call_tail_p (call) || !gimple_call_internal_p (call) || !direct_internal_fn_p (gimple_call_internal_fn (call)))) #endif return false;