aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2017-08-14 21:15:13 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2017-08-14 21:15:13 +0000
commit53a5fbb45fa45cba48963a6b17defa4c4f072d9d (patch)
tree750f3d0408337c88a5ee993680853096b47bbbdf /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent8bf15723ae9cf59a7171981b1b0257de4d48e344 (diff)
downloadllvm-53a5fbb45fa45cba48963a6b17defa4c4f072d9d.zip
llvm-53a5fbb45fa45cba48963a6b17defa4c4f072d9d.tar.gz
llvm-53a5fbb45fa45cba48963a6b17defa4c4f072d9d.tar.bz2
Add strictfp attribute to prevent unwanted optimizations of libm calls
Differential Revision: https://reviews.llvm.org/D34163 llvm-svn: 310885
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index ac54f16..fc58718 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -610,6 +610,8 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) {
return bitc::ATTR_KIND_STACK_PROTECT_STRONG;
case Attribute::SafeStack:
return bitc::ATTR_KIND_SAFESTACK;
+ case Attribute::StrictFP:
+ return bitc::ATTR_KIND_STRICT_FP;
case Attribute::StructRet:
return bitc::ATTR_KIND_STRUCT_RET;
case Attribute::SanitizeAddress: