[PATCH] D43142: Experimental pass to convert all floating point operations to the equivalent constrained intrinsics
Cameron McInally via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 2 10:57:51 PDT 2018
cameron.mcinally added a comment.
In https://reviews.llvm.org/D43142#1285692, @kpn wrote:
> Hmmm. A clang option to turn on FENV_ACCESS for entire compilations would work around this issue. So the behavior you are describing here would work for me.
This is interesting. I was thinking the same thing (and maybe even changing the Standard to match).
I'm struggling to find a good use case for dynamically changing FENV_ACCESS in a translation unit. My current belief is that if a user wants to run with traps, they would want trap-safe code everywhere. If that was the case, the user would still be able to toggle signals with the feenableexcept() and friends functions (similar for rounding mode too).
https://reviews.llvm.org/D43142
More information about the llvm-commits
mailing list