------- Comment #6 from pinskia at gcc dot gnu dot org 2009-09-29 05:51 ------- Before CSE: (insn 13 2 5 2 t.c:8 (set (reg:SI 119) (plus:SI (reg/f:SI 113 sfp) (const_int 8 [0x8]))) -1 (nil))
(insn 5 13 6 2 t.c:8 (set (reg:SI 3 3) (reg:SI 119)) 332 {*movsi_internal1} (nil)) ... (insn 14 6 7 2 t.c:9 (set (reg:SI 120) (plus:SI (reg/f:SI 113 sfp) (const_int 8 [0x8]))) -1 (nil)) (insn 7 14 8 2 t.c:9 (set (reg:SI 3 3) (reg:SI 120)) 332 {*movsi_internal1} (nil)) And then after CSE, we remove the adds but we should have moved the adds into the move. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |rtl-optimization http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40615