https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91775 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I dont know/remember if iv-opts takes into account the cost difference of the comparisons for the exit condition. If it does then this becomes a target issue.