------- Comment #2 from rakdver at gcc dot gnu dot org 2007-05-09 11:10 ------- (In reply to comment #1) > Does it do it if you specify --param lim-expensive=1? Then it's just a cost > issue.
no, lim won't do this transformation. Store motion could probably be persuaded to do it by a few changes, although I am not quite sure what is the benefit of moving no-op casts out of the loop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31873