------- Comment #3 from rakdver at gcc dot gnu dot org  2009-04-25 22:44 -------
I cannot reproduce this in 4.5; all the unnecessary loads are removed.

> The fix is to avoid the load part of load-store-motion of course.

I've considered this, but it seems much easier to just let the unnecessary
loads be dce'd (detecting the unnecessary loads in lsm would basically
duplicate the work done by ssa update for the new variables.  I thought about
doing the ssa update and then removing the loads that are unused, but since
that seems to happen anyway, there is not much point).


-- 

rakdver at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|rakdver at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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

Reply via email to