[llvm-dev] [cfe-dev] RFC: change -fp-contract=off to actually disable FMAs

Matt Arsenault via llvm-dev llvm-dev at lists.llvm.org
Fri Jul 12 09:55:07 PDT 2019



> On Jul 12, 2019, at 12:32, Scott Manley <rscottmanley at gmail.com> wrote:
> 
> I still have some confusion of what FMAD is supposed to be. Is FMAD actually MAD? Or is it something else? I am fine with leaving it alone if FMAD is not actually contracting floating point operations.

Yes. FMAD is supposed to give the same result as the separate FMUL and FADD with the intermediate rounding step. It exists because most of the combines for FMA still apply, and AMDGPU has an instruction that does this (as long as denormal flushing is OK). I don’t know of any other users.

-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190712/dafb90b9/attachment.html>


More information about the llvm-dev mailing list