diff options
author | Slava Zakharin <szakharin@nvidia.com> | 2022-11-09 15:01:47 -0800 |
---|---|---|
committer | Slava Zakharin <szakharin@nvidia.com> | 2022-11-09 15:01:47 -0800 |
commit | 3538ca3f1b61e72bdfb8d62215c2d5de802c493f (patch) | |
tree | b16c6446c60cf5e3f9a63928dded0e6a3ab0f9e1 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 72f89556413f9c1fb1fb9138d6d53e13499ce545 (diff) | |
download | llvm-3538ca3f1b61e72bdfb8d62215c2d5de802c493f.zip llvm-3538ca3f1b61e72bdfb8d62215c2d5de802c493f.tar.gz llvm-3538ca3f1b61e72bdfb8d62215c2d5de802c493f.tar.bz2 |
[flang] Propagate more FastMath flags to lowering.
Plugged in propagation of nnan/nsz/arcp/afn/reassoc related options
to lowering/FirOpBuilder.
Reviewed By: jeanPerier, tblah, awarzynski
Differential Revision: https://reviews.llvm.org/D137580
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 043c352..4ae35762 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -957,5 +957,10 @@ void CompilerInvocation::setLoweringOptions() { mathOpts .setFPContractEnabled(langOptions.getFPContractMode() == LangOptions::FPM_Fast) - .setNoHonorInfs(langOptions.NoHonorInfs); + .setNoHonorInfs(langOptions.NoHonorInfs) + .setNoHonorNaNs(langOptions.NoHonorNaNs) + .setApproxFunc(langOptions.ApproxFunc) + .setNoSignedZeros(langOptions.NoSignedZeros) + .setAssociativeMath(langOptions.AssociativeMath) + .setReciprocalMath(langOptions.ReciprocalMath); } |