------- Comment #15 from changpeng dot fang at amd dot com  2010-02-16 19:54 
-------
Hello,
I am not sure whether CD-DCE can fully replace remove_empty_loop. However,
I would prefer to keep remove_empty_loop pass. There are two reasons for
this proposal:
(1) remove_empty_loop was at level -O1 and above, but CD-DCE at -O2 and above.
(2) remove_empty_loop can be extended to handle other cases which CD-DCE is not
able to:

    for(i=0; i<n; i++);
    j = i;
 In this case, the loop itself is "empty" and we can replace every use of the
phi with "n" (exit value of the iv).

What do you think about this (put back the empty loop removal code)? Thanks,


-- 

changpeng dot fang at amd dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cfang at gcc dot gnu dot org


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

Reply via email to