This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]