]> granicus.if.org Git - clang/commitdiff
Fix help message for -ffp-contract
authorYaxun Liu <Yaxun.Liu@amd.com>
Thu, 10 Oct 2019 22:43:00 +0000 (22:43 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Thu, 10 Oct 2019 22:43:00 +0000 (22:43 +0000)
Differential Revision: https://reviews.llvm.org/D68823

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374467 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.td

index 1374d3fb321a2abb2ff4dd88916832f9703cdb1b..09507dfab4bb9e2b7485816eab183a29bb1fd229 100644 (file)
@@ -1147,7 +1147,8 @@ def ftrapping_math : Flag<["-"], "ftrapping-math">, Group<f_Group>, Flags<[CC1Op
 def fno_trapping_math : Flag<["-"], "fno-trapping-math">, Group<f_Group>, Flags<[CC1Option]>;
 def ffp_contract : Joined<["-"], "ffp-contract=">, Group<f_Group>,
   Flags<[CC1Option]>, HelpText<"Form fused FP ops (e.g. FMAs): fast (everywhere)"
-  " | on (according to FP_CONTRACT pragma, default) | off (never fuse)">, Values<"fast,on,off">;
+  " | on (according to FP_CONTRACT pragma) | off (never fuse). Default"
+  " is 'fast' for CUDA/HIP and 'on' otherwise.">, Values<"fast,on,off">;
 
 def fstrict_float_cast_overflow : Flag<["-"],
   "fstrict-float-cast-overflow">, Group<f_Group>, Flags<[CC1Option]>,