Skip to content

Commit 7258431

Browse files
committed
Update handling of -cl-denorms-are-zero
Replaced "-cl-denorms-are-zero" with "-fdenormal-fp-math=preserve-sign" in accordance with llvm/llvm-project@a4451d88A "Consolidate internal denormal flushing controls" Signed-off-by: Alexey Sachkov <[email protected]>
1 parent 77ae111 commit 7258431

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

options_compile.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args,
7575
case OPT_COMPILE_I:
7676
case OPT_COMPILE_Werror:
7777
case OPT_COMPILE_cl_single_precision_constant:
78-
case OPT_COMPILE_cl_denorms_are_zero:
7978
case OPT_COMPILE_cl_fp32_correctly_rounded_divide_sqrt:
8079
case OPT_COMPILE_cl_opt_disable:
8180
case OPT_COMPILE_cl_mad_enable:
8281
case OPT_COMPILE_cl_no_signed_zeros:
8382
case OPT_COMPILE_cl_unsafe_math_optimizations:
8483
effectiveArgs.push_back((*it)->getAsString(args));
8584
break;
85+
case OPT_COMPILE_cl_denorms_are_zero:
86+
effectiveArgs.push_back("-fdenormal-fp-math=preserve-sign");
87+
break;
8688
case OPT_COMPILE_s: {
8789
std::string newSourceName = (*it)->getValue();
8890
if (!newSourceName.empty()) {

0 commit comments

Comments
 (0)