r234093 - Remove the cl-no-signed-zeros cc1 option
Sanjay Patel
spatel at rotateright.com
Sat Apr 4 07:54:24 PDT 2015
Author: spatel
Date: Sat Apr 4 09:54:24 2015
New Revision: 234093
URL: http://llvm.org/viewvc/llvm-project?rev=234093&view=rev
Log:
Remove the cl-no-signed-zeros cc1 option
Use the driver flag -fno-signed-zeros instead.
This was recommended but not implemented in D6873:
http://reviews.llvm.org/D6873
which was checked in at r226915:
http://reviews.llvm.org/rL226915
Modified:
cfe/trunk/include/clang/Driver/CC1Options.td
cfe/trunk/test/CodeGenOpenCL/relaxed-fpmath.cl
Modified: cfe/trunk/include/clang/Driver/CC1Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1Options.td?rev=234093&r1=234092&r2=234093&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/CC1Options.td (original)
+++ cfe/trunk/include/clang/Driver/CC1Options.td Sat Apr 4 09:54:24 2015
@@ -585,8 +585,6 @@ def cl_finite_math_only : Flag<["-"], "c
HelpText<"OpenCL only. Allow floating-point optimizations that assume arguments and results are not NaNs or +-Inf.">;
def cl_kernel_arg_info : Flag<["-"], "cl-kernel-arg-info">,
HelpText<"OpenCL only. Generate kernel argument metadata.">;
-def : Flag<["-"], "cl-no-signed-zeros">, Alias<fno_signed_zeros>,
- HelpText<"OpenCL only. Allow optimizations to ignore the signedness of the floating-point zero.">;
def cl_unsafe_math_optimizations : Flag<["-"], "cl-unsafe-math-optimizations">,
HelpText<"OpenCL only. Allow unsafe floating-point optimizations. Also implies -cl-no-signed-zeros and -cl-mad-enable">;
def cl_fast_relaxed_math : Flag<["-"], "cl-fast-relaxed-math">,
Modified: cfe/trunk/test/CodeGenOpenCL/relaxed-fpmath.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenOpenCL/relaxed-fpmath.cl?rev=234093&r1=234092&r2=234093&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenOpenCL/relaxed-fpmath.cl (original)
+++ cfe/trunk/test/CodeGenOpenCL/relaxed-fpmath.cl Sat Apr 4 09:54:24 2015
@@ -2,7 +2,6 @@
// RUN: %clang_cc1 %s -emit-llvm -cl-fast-relaxed-math -o - | FileCheck %s -check-prefix=FAST
// RUN: %clang_cc1 %s -emit-llvm -cl-finite-math-only -o - | FileCheck %s -check-prefix=FINITE
// RUN: %clang_cc1 %s -emit-llvm -cl-unsafe-math-optimizations -o - | FileCheck %s -check-prefix=UNSAFE
-// RUN: %clang_cc1 %s -emit-llvm -cl-no-signed-zeros -o - | FileCheck %s -check-prefix=NOSZ
typedef __attribute__(( ext_vector_type(4) )) float float4;
@@ -13,7 +12,6 @@ float spscalardiv(float a, float b) {
// FAST: fdiv fast float
// FINITE: fdiv nnan ninf float
// UNSAFE: fdiv nnan float
- // NOSZ: fdiv nsz float
return a / b;
}
// CHECK: attributes
More information about the cfe-commits
mailing list