------- Additional Comments From dberlin at gcc dot gnu dot org 2005-03-24 04:21 ------- To add some more detail:
We sink the iv increment because it wasn't used in the old exit test. However, the exit test we want to generate wants to use it, but because we sunk it, it no longer dominates the right block. The easy fix here is to take the iv var, increment it on our own (instead of trying to use the pre-inc'ed version), and just let rednudancy elimination sort the rest out :) -- What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |SUSPENDED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20612