summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-01-25 06:08:42 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-01-25 06:08:42 +0000
commit732a531506b654a05380d3d155bcf7ebe33b1126 (patch)
tree75a5fcae54cacc461add7e5f2af71c8c81a44790 /llvm/lib/Target/TargetMachine.cpp
parent4844573eb1dda9287e54ee70bc7acf3e238a889b (diff)
downloadbcm5719-llvm-732a531506b654a05380d3d155bcf7ebe33b1126.tar.gz
bcm5719-llvm-732a531506b654a05380d3d155bcf7ebe33b1126.zip
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. llvm-svn: 293024
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/TargetMachine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp
index 2b3f282f363..438c62dd5ae 100644
--- a/llvm/lib/Target/TargetMachine.cpp
+++ b/llvm/lib/Target/TargetMachine.cpp
@@ -84,6 +84,7 @@ void TargetMachine::resetTargetOptions(const Function &F) const {
RESET_OPTION(UnsafeFPMath, "unsafe-fp-math");
RESET_OPTION(NoInfsFPMath, "no-infs-fp-math");
RESET_OPTION(NoNaNsFPMath, "no-nans-fp-math");
+ RESET_OPTION(NoSignedZerosFPMath, "no-signed-zeros-fp-math");
RESET_OPTION(NoTrappingFPMath, "no-trapping-math");
StringRef Denormal =
OpenPOWER on IntegriCloud