This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Loop optimizer misses simple optimisation?



  In message <199805032232.PAA08246@rtl.cygnus.com>you write:
  > 	However, a div or mod operation can not generally be moved out of
  > 	a loop unless you know it won't trap (divide by zero).
  > 
  > If an instruction might trap, then it will be moved out of a loop if we
  > can prove that it will be executed at least once.
Ah, yes, you're right.  I forgot about that tidbit.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]