diff options
author | Duncan Sands <baldrick@free.fr> | 2010-12-20 13:10:23 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-12-20 13:10:23 +0000 |
commit | 0d7ce5ffa4aa853b75e1015c62e27bd9f23ef73b (patch) | |
tree | e646320838c0b7e8dafba5bc897d341220421bde /include/llvm/Instruction.h | |
parent | 8e4f4390bc3e6ed0ec72281c67950f54474f915d (diff) | |
download | external_llvm-0d7ce5ffa4aa853b75e1015c62e27bd9f23ef73b.zip external_llvm-0d7ce5ffa4aa853b75e1015c62e27bd9f23ef73b.tar.gz external_llvm-0d7ce5ffa4aa853b75e1015c62e27bd9f23ef73b.tar.bz2 |
There is no need for isAssociative to take the type as an argument anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 88f5ce1..89bb9fd 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -200,11 +200,10 @@ public: /// /// Associative operators satisfy: x op (y op z) === (x op y) op z /// - /// In LLVM, the Add, Mul, And, Or, and Xor operators are associative, when - /// not applied to floating point types. + /// In LLVM, the Add, Mul, And, Or, and Xor operators are associative. /// - bool isAssociative() const { return isAssociative(getOpcode(), getType()); } - static bool isAssociative(unsigned op, const Type *Ty); + bool isAssociative() const { return isAssociative(getOpcode()); } + static bool isAssociative(unsigned op); /// isCommutative - Return true if the instruction is commutative: /// |