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/Transforms/IPO/ForceFunctionAttrs.cpp | |
parent | 8bf15723ae9cf59a7171981b1b0257de4d48e344 (diff) | |
download | bcm5719-llvm-53a5fbb45fa45cba48963a6b17defa4c4f072d9d.tar.gz bcm5719-llvm-53a5fbb45fa45cba48963a6b17defa4c4f072d9d.zip |
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/Transforms/IPO/ForceFunctionAttrs.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp b/llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp index 96871213820..e48c3d73237 100644 --- a/llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp +++ b/llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp @@ -57,6 +57,7 @@ static Attribute::AttrKind parseAttrKind(StringRef Kind) { .Case("ssp", Attribute::StackProtect) .Case("sspreq", Attribute::StackProtectReq) .Case("sspstrong", Attribute::StackProtectStrong) + .Case("strictfp", Attribute::StrictFP) .Case("uwtable", Attribute::UWTable) .Default(Attribute::None); } |