diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2017-08-14 21:15:13 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2017-08-14 21:15:13 +0000 |
commit | 53a5fbb45fa45cba48963a6b17defa4c4f072d9d (patch) | |
tree | 750f3d0408337c88a5ee993680853096b47bbbdf /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 8bf15723ae9cf59a7171981b1b0257de4d48e344 (diff) | |
download | llvm-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.cpp | 2 |
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: |