From 774cec5748bf34c7c0571c1f3c730f9990220a44 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Sat, 18 Jan 2014 00:48:14 +0000 Subject: 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 --- include/llvm/IR/Operator.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/llvm/IR') 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; + } }; -- cgit v1.2.3