From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Wilson To: law@cygnus.com Cc: Kamil Iskra , egcs@cygnus.com Subject: Re: Loop optimizer misses simple optimisation? Date: Sun, 03 May 1998 15:32:00 -0000 Message-id: <199805032232.PAA08246@rtl.cygnus.com> References: <19466.894225692@hurl.cygnus.com> X-SW-Source: 1998-05/msg00060.html 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. Jim