------- Additional Comments From rakdver at gcc dot gnu dot org  2004-12-27 
23:53 -------
Actually it is even more stupid.  Patch below, just testing.

Index: loop-iv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/loop-iv.c,v
retrieving revision 2.25
diff -c -3 -p -r2.25 loop-iv.c
*** loop-iv.c   18 Dec 2004 20:14:24 -0000      2.25
--- loop-iv.c   27 Dec 2004 23:52:38 -0000
*************** iv_number_of_iterations (struct loop *lo
*** 2132,2138 ****
        if (iv0.step == const0_rtx)
        step_val = -INTVAL (iv1.step);
        else
!       step_val = INTVAL (iv1.step);

        /* Ignore loops of while (i-- < 10) type.  */
        if (step_val < 0)
--- 2132,2138 ----
        if (iv0.step == const0_rtx)
        step_val = -INTVAL (iv1.step);
        else
!       step_val = INTVAL (iv0.step);

        /* Ignore loops of while (i-- < 10) type.  */
        if (step_val < 0)


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19103

Reply via email to