[PATCH] D142907: LangRef: Add "dynamic" option to "denormal-fp-math"

Phoebe Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 16 22:31:28 PST 2023


pengfei added inline comments.


================
Comment at: llvm/docs/LangRef.rst:2166
+
+    If the mode is ``"dynamic"``, the behavior is derived from the
+    dynamic state of the floating-point environment. Transformations
----------------
1. Does it mean users must specify `dynamic` when they change FTZ/DAZ in a function?
2. If 1) is true, is there a way to partially set on functions in its call stack, e.g.,
```
main
  f0
  f1
    f10
      setFtzDaz(true);
  f2
  f3
```
Ideally, users may want to tell compiler `main`, `f1`, `f10` is `dynamic`, while `f0` is `ieee` and `f2`, `f3` is `positive-zero`, rather than `dynamic` for all.
3. If 2) is true, it looks silly to do it one by one manually. Should compiler help to deduce this information itself?


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

https://reviews.llvm.org/D142907



More information about the cfe-commits mailing list