[Bug ipa/105917] [10/11/12/13 regression] Missed passthru jump function

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 10 13:00:50 GMT 2022


Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
            Summary|Missed passthru jump        |[10/11/12/13 regression]
                   |function                    |Missed passthru jump
                   |                            |function

--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Looking at the compiler explorer, the both testcases actually works up to gcc

reta(a) [clone .constprop.0]:
        xorl    %eax, %eax
retba(b) [clone .isra.0] [clone .constprop.0]:
        jmp     reta(a) [clone .constprop.0]
        xorl    %edi, %edi
        jmp     retba(b) [clone .isra.0] [clone .constprop.0]

Clang optimizes main to return 0 which we don't due to lack of return
Also ISRA may trigger on reta+retb and break out the integer rather than
substructure but doesn't.

More information about the Gcc-bugs mailing list