[Bug tree-optimization/26726] -fivopts producing out of bounds array refs

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Apr 27 15:59:00 GMT 2006



------- Comment #8 from rguenth at gcc dot gnu dot org  2006-04-27 15:59 -------
The offset causes the assembler to be sub-optimal:

.LCFI2:
        leal    -12(%ebp), %eax
        leal    4(%ebp), %edx
        .p2align 4,,7
.L2:
        movl    $1, -4(%eax)
        addl    $4, %eax
        cmpl    %edx, %eax
        jne     .L2

and I can imagine on auto-decrement targets it would be even worse (though
I didn't check).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26726



More information about the Gcc-bugs mailing list