------- Comment #6 from kkojima at gcc dot gnu dot org 2010-04-14 22:04 ------- I've tried to modify doloop_end* along in the line Bernd's patch suggests, but can't find a good one yet. Although doloop_optimize can be modified to recognize those patterns, it isn't a very good idea to add extra lines to the generic code for one special target. I'll apply the patch in #5 as a work around.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43742