summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2012-11-29 01:47:31 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2012-11-29 01:47:31 +0000
commit9b7f6f2de89a321f7eae5e942c8668cb50acfd1d (patch)
tree3f34a5f5d5e79b5f79237baf71ae60f7037d538c /include
parent89bea17af235ea3a69485e73e54e71053c1bd936 (diff)
downloadllvm-9b7f6f2de89a321f7eae5e942c8668cb50acfd1d.tar.gz
llvm-9b7f6f2de89a321f7eae5e942c8668cb50acfd1d.tar.bz2
llvm-9b7f6f2de89a321f7eae5e942c8668cb50acfd1d.tar.xz
Instruction::isAssociative() returns true for fmul/fadd if they are tagged "unsafe" mode.
Approved by: Eli and Michael. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instruction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 22c8289c73..2c1d41c705 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -253,7 +253,7 @@ public:
///
/// In LLVM, the Add, Mul, And, Or, and Xor operators are associative.
///
- bool isAssociative() const { return isAssociative(getOpcode()); }
+ bool isAssociative() const;
static bool isAssociative(unsigned op);
/// isCommutative - Return true if the instruction is commutative: