diff options
author | Shuxin Yang <shuxin.llvm@gmail.com> | 2012-11-29 01:47:31 +0000 |
---|---|---|
committer | Shuxin Yang <shuxin.llvm@gmail.com> | 2012-11-29 01:47:31 +0000 |
commit | 9b7f6f2de89a321f7eae5e942c8668cb50acfd1d (patch) | |
tree | 3f34a5f5d5e79b5f79237baf71ae60f7037d538c /include/llvm/Instruction.h | |
parent | 89bea17af235ea3a69485e73e54e71053c1bd936 (diff) | |
download | external_llvm-9b7f6f2de89a321f7eae5e942c8668cb50acfd1d.zip external_llvm-9b7f6f2de89a321f7eae5e942c8668cb50acfd1d.tar.gz external_llvm-9b7f6f2de89a321f7eae5e942c8668cb50acfd1d.tar.bz2 |
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/llvm/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 22c8289..2c1d41c 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: |