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]
Other format: [Raw text]

Re: anti-optimization of _DecimalXX by -ffast-math


On Tue, Jan 12, 2010 at 12:59 PM, Roman Kononov <roman@binarylife.net> wrote:
> Is there a good reason to place something on the stack? Why does
> -funsafe-math-optimizations (which is a part of -ffast-math) make things
> even worse? It actually swaps the arguments for __bid_adddd3().

Because it turns on re-association which causes a+b to be b+a in your
case.  And nothing turns it back for better register allocation.

Thanks,
Andrew Pinski


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