[PATCH] D80416: [RFC][OpenCL] Set fp contract flag on -cl-mad-enable

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 21 15:43:54 PDT 2020


Anastasia marked an inline comment as done.
Anastasia added inline comments.


================
Comment at: clang/test/CodeGenOpenCL/relaxed-fpmath.cl:21
+float fused_mad(float a, float b, float c) {
+  // NORMAL: @llvm.fmuladd.f32
+  // FAST: fmul fast float
----------------
I don't find this behavior "NORMAL". I don't believe we should contract expressions by default in OpenCL...


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80416/new/

https://reviews.llvm.org/D80416





More information about the cfe-commits mailing list