https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92986
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes, this is a vague linkage function so as jakub mentioned, comparing the ir even between optimization levels is hard. Yes we could in theory it could be done but for gcc, it would mean ripping up most of the compiler