http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47614
--- Comment #14 from Pat Haugen <pthaugen at gcc dot gnu.org> 2011-02-09 21:03:31 UTC --- (In reply to comment #13) > Alternatively, if we go the first patch route, I > think side_effects_p guard in reload_cse_simplify_operands is still desirable. My bootstrap/regtest (of essentially the first patch above) went fine, but I agree that the addition of side_effects_p guard in reload_cse_simplify_operands is probably the right thing to do too. I like the first patch over the second since we are able to replace the redundant load with a simple increment. I'll bootstrap/regtest the additional change.