OSDN Git Service

DAG: Recognize no-signed-zeros-fp-math attribute
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 25 Jan 2017 06:08:42 +0000 (06:08 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 25 Jan 2017 06:08:42 +0000 (06:08 +0000)
commit9291d3c697a3b4286af02f706516b0d015f11ee3
treefcfa0e681b8edaebcdd0aae024e4381b08458735
parent71721c067d44206c254d8f796c788fcad785698d
DAG: Recognize no-signed-zeros-fp-math attribute

clang already emits this with -cl-no-signed-zeros, but codegen
doesn't do anything with it. Treat it like the other fast math
attributes, and change one place to use it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293024 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/CommandFlags.h
include/llvm/Target/TargetOptions.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/TargetMachine.cpp
test/CodeGen/AMDGPU/enable-no-signed-zeros-fp-math.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/fsub.ll
test/CodeGen/X86/negative-sin.ll