[Bug tree-optimization/23855] loop header should also be pulled out of the inner loop too

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Aug 14 04:00:00 GMT 2016


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

--- Comment #29 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We unswitch on the outer loops now in GCC 6 and above.
So can we consider this as fixed?

The code for aarch64-linux-gnu on the trunk looks like:
.L3:
        mov     w19, 0
        .p2align 3
.L4:
        bl      bar
        add     w19, w19, 1
        cmp     w20, w19
        bne     .L4
        add     w21, w21, 1
        cmp     w22, w21
        bne     .L3


More information about the Gcc-bugs mailing list