diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-18 14:22:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-18 14:22:04 +0000 |
commit | e368b460a206fafa0d31d5d059b1779b94f7df8c (patch) | |
tree | 73508159acd14e76dc92313df355849ee75ec35d /include/llvm/CodeGen | |
parent | 7720cb3823d5b5868f9b88b0127277820edcb562 (diff) | |
download | llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.gz llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.bz2 llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.xz |
Eliminate unnecessary uses of getZExtValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 316ae26ac6..50d853cb46 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1082,6 +1082,7 @@ public: uint64_t getZExtValue() const { return Value->getZExtValue(); } int64_t getSExtValue() const { return Value->getSExtValue(); } + bool isOne() const { return Value->isOne(); } bool isNullValue() const { return Value->isNullValue(); } bool isAllOnesValue() const { return Value->isAllOnesValue(); } |