[PATCH] D43414: AMDGPU: Define FP_FAST_FMA{F} macros for amdgcn

Tony Tye via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 14:54:28 PST 2018

t-tye added a subscriber: b-sumner.
t-tye added inline comments.

Comment at: lib/Basic/Targets/AMDGPU.cpp:345-348
+  if (getTriple().getArch() == llvm::Triple::amdgcn) {
+    Builder.defineMacro("FP_FAST_FMA");
+    Builder.defineMacro("FP_FAST_FMAF");
+  }
Do all amdgcn targets have fast FMA? @b-sumner can you clarify?


More information about the llvm-commits mailing list