optimization request: (-a)*(-b) => a*b

Sylvain Pion Sylvain.Pion@sophia.inria.fr
Thu Mar 4 02:47:00 GMT 1999


While I am at it, I also think the following kind of tests can be optimized:
(-a)>0  => a<0

Am I right ?  Is it doable ?

For those who wonder, those kind of small optimizations would make a very
clean and efficient implementation of interval arithmetic, so it's useful.

-- 
Sylvain


More information about the Gcc mailing list