not hoisting loads/stores

Dan Nicolaescu dann@ics.uci.edu
Thu Dec 16 17:02:00 GMT 1999


Jeffrey A Law <law@cygnus.com> writes:

  >   In message < 199912041331.aa15618@gremlin-relay.ics.uci.edu >you write:
  >   > Hi!
  >   > 
  >   > Here is a simple example where gcc does not hoist loads/stores out of
  >   > a loop. 
  >   > 
  >   > I don't see any reason why it shouldn't do it... 
  >
  > Because those instructions are created long after the loop
  > optimizer has run and thus the compiler never has a chance to
  > hoist those memory refereces out of the loop.

Is there any chance for the loop optimizer to hoist whatever insns are
there (and that will later become those memory references) at the time
it is run? 
Is this a problem with the loop optimizer? 

dan


More information about the Gcc mailing list