optimization/10080: Loop unroller nearly useless

rakdver@atrey.karlin.mff.cuni.cz rakdver@atrey.karlin.mff.cuni.cz
Sat Mar 15 00:48:00 GMT 2003


Hello,

the problem is that ++i is tranlated into

(insn 28 26 29 1 0x40135c40 (set (reg:DI 79)
        (plus:DI (reg/v:DI 72 [ i ])
            (const_int 1 [0x1]))) -1 (nil)
    (nil))
(insn 29 28 75 1 0x40135c40 (set (reg/v:DI 72 [ i ])
        (sign_extend:DI (subreg:SI (reg:DI 79) 0))) -1 (nil)
    (nil))

but my analysis is overly simplistic and does not recognize this. I am working
on fix.

Zdenek



More information about the Gcc-bugs mailing list