Simple optimizations missing

Andreas Jaeger aj@suse.de
Sun Sep 9 07:45:00 GMT 2001


Frank Klemm <pfk@fuchs.offl.uni-jena.de> writes:

> Expression optimizations:
>
> 	x / x = 1
> 	x % x = 0

For floating point or for integer?

For floating point: 0.0/0.0 might generate a floating point exceptions
and the result is a NaN.  The same applies for the infinites.

Frank, I'm looking forward to your patches hoping that they're as good
as your analysis,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Gcc mailing list