Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #1010

Re: Compiler optimization and floating point operations

From Cameron McInally <cameron.mcinally@nyu.edu>
Newsgroups comp.compilers
Subject Re: Compiler optimization and floating point operations
Date 2013-10-23 22:55 -0400
Organization Compilers Central
Message-ID <13-10-027@comp.compilers> (permalink)
References <13-10-026@comp.compilers>

Show all headers | View raw


Hey Abid,

On Wed, Oct 23, 2013 at 4:47 PM, Abid <abidmuslim@gmail.com> wrote:
> Does back end compiler optimizations affect the floating point
> accuracy?

Not all optimizations will affect floating point accuracy, but some
may. For example, an optimization that makes use of the associative
property or distributive property can have an impact. This is the
nature of the limited accuracy in floating point numbers.

Another common example is the use of FMA (Fused Multiply Add)
instructions. Although, using these instructions will most likely lead
to better accuracy, since there is only one rounding error applied to
the multiply and the add.

> Is there any research work in this area?

Yes, tons. Search for "floating point accuracy" and you will be sure
to find research going way back.

-Cameron

Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Compiler optimization and floating point operations Abid <abidmuslim@gmail.com> - 2013-10-23 13:47 -0700
  Re: Compiler optimization and floating point operations Cameron McInally <cameron.mcinally@nyu.edu> - 2013-10-23 22:55 -0400
  Re: Compiler optimization and floating point operations glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-10-24 02:56 +0000
  Re: Compiler optimization and floating point operations George Neuner <gneuner2@comcast.net> - 2013-10-24 07:41 -0400
    Re: Compiler optimization and floating point operations Jean-Marc Bourguet <jm@bourguet.org> - 2013-10-24 15:51 +0200
    Re: Compiler optimization and floating point operations "Steven G. Kargl" <sgk@troutmask.apl.washington.edu> - 2013-10-24 16:38 +0000
      Re: Compiler optimization and floating point operations christian.bau@cbau.wanadoo.co.uk - 2013-10-28 15:54 -0700
    Re: Compiler optimization and floating point operations George Neuner <gneuner2@comcast.net> - 2013-10-24 15:51 -0400
    Re: Compiler optimization and floating point operations glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-10-24 20:21 +0000
    Re: Compiler optimization and floating point operations christian.bau@cbau.wanadoo.co.uk - 2013-10-28 15:50 -0700
      Re: Compiler optimization and floating point operations Cameron McInally <cameron.mcinally@nyu.edu> - 2013-10-28 20:41 -0400

csiph-web