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