https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87988
--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> --- We still have: /* When not generating debug info we can eliminate info on unused variables. */ else if (!flag_auto_profile && debug_info_level == DINFO_LEVEL_NONE && !optinfo_wants_inlining_info_p ()) can we do better here?