]> granicus.if.org Git - clang/commit
Process the -fno-signed-zeros optimization flag (PR20870)
authorSanjay Patel <spatel@rotateright.com>
Fri, 23 Jan 2015 16:40:50 +0000 (16:40 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 23 Jan 2015 16:40:50 +0000 (16:40 +0000)
commit836904e7cf5d12fe08026145404f1e7944e6deac
treee0d6f3358a9bfa5f0fc5d435711dd2d8bfe2264e
parent8785e3e9a01de095f794d7f81ea00e70a337dee0
Process the -fno-signed-zeros optimization flag (PR20870)

The driver currently accepts but ignores the -fno-signed-zeros flag.
This patch passes the flag through and enables 'nsz' fast-math-flag
generation in IR.

The existing OpenCL flag for the same functionality is made into an
alias here. It may be removed in a subsequent patch.

This should resolve bug 20870 ( http://llvm.org/bugs/show_bug.cgi?id=20870 );
patches for the optimizer were checked in at:
http://llvm.org/viewvc/llvm-project?view=revision&revision=225050
http://llvm.org/viewvc/llvm-project?view=revision&revision=224583

Differential Revision: http://reviews.llvm.org/D6873

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226915 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/finite-math.c
test/Driver/fast-math.c