https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80726
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |marxin at gcc dot gnu.org Component|tree-optimization |ipa Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> --- This really looks like a conflict with function splitting and comdats. We obviously can't introduce call to comdat local function but we indeed can bring function out of the comdat group. For that we, of course, would need to check how big that function is (account cross-module unsharing) into cost of the inline decision which will need bit of work. ipa-sra is currently bringing functions out of comdats "on wild" (i.e. without bounds on how big the function can be). I will play with this. Probably bit too involved for stage4 though.