[Bug tree-optimization/65068] Improve rewriting for address type induction variables in IVOPT

ramana at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 24 08:43:00 GMT 2016


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

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
And by default we see this

.L4:
        add     x3, x5, x1
        add     x1, x1, 1
        ldr     w2, [x4, x3, lsl 2]
        cmp     w0, w1
        add     w2, w2, 1
        str     w2, [x4, x3, lsl 2]
        bgt     .L4


- Costs ?


More information about the Gcc-bugs mailing list