diff options
author | Owen Anderson <resistor@mac.com> | 2014-01-18 00:48:14 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2014-01-18 00:48:14 +0000 |
commit | 774cec5748bf34c7c0571c1f3c730f9990220a44 (patch) | |
tree | 70769abdf74f979cdbad8513384241723bdfd7db /include/llvm/IR | |
parent | 3cbfa1617f0d935d68bf519afb5720df066849c2 (diff) | |
download | llvm-774cec5748bf34c7c0571c1f3c730f9990220a44.tar.gz llvm-774cec5748bf34c7c0571c1f3c730f9990220a44.tar.bz2 llvm-774cec5748bf34c7c0571c1f3c730f9990220a44.tar.xz |
Fix more instances of dropped fast math flags when optimizing FADD instructions. All found by inspection (aka grep).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR')
-rw-r--r-- | include/llvm/IR/Operator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/IR/Operator.h b/include/llvm/IR/Operator.h index 119156a50e..a30a84685d 100644 --- a/include/llvm/IR/Operator.h +++ b/include/llvm/IR/Operator.h @@ -210,6 +210,10 @@ public: setNoSignedZeros(); setAllowReciprocal(); } + + void operator&=(const FastMathFlags &OtherFlags) { + Flags &= OtherFlags.Flags; + } }; |