https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65010

pthaugen at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pthaugen at gcc dot gnu.org

--- Comment #11 from pthaugen at gcc dot gnu.org ---
Another example to clean up. The back to back constant load/sign extend
sequence of rtl insns is created in each block by the block reordering pass
(.bbo) duplicating the common return block.

int foo(int in)
{
   if (in == 1)
     return 123;
   return 0;
}


foo:
.LFB0:
        .cfi_startproc
        cmpwi 0,3,1
        beq 0,.L5
        li 3,0
        extsw 3,3
        blr
        .p2align 4,,15
.L5:
        li 3,123
        extsw 3,3
        blr

Reply via email to