https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86763
--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Richard Biener from comment #3) > see how the compare is moved very far away from the branch possibly across > flag clobbering insns (rep movsq?). Target sounds good. No, rep movsq doesn't clobber flags [1]. [1] http://www.felixcloutier.com/x86/MOVS:MOVSB:MOVSW:MOVSD:MOVSQ.html