------- Comment #20 from rakdver at gcc dot gnu dot org 2007-11-24 19:08 -------
> Couldn't ivopts be taught to recognize "dec and branch on zero" patterns > > k_114 = k_15 + -1; > if (k_114 != 0) > goto <bb 10>; > else > goto <bb 11>; > > and take into account their breakage for its cost estimates somehow? Why? If using dec and branch is profitable, doloop pass should do it; the transformation that ivopts do does not prevent that or make it any more difficult. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31849