aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/SelectionDAGNodes.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 14:22:04 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 14:22:04 +0000
commitbcc946d7409ba0d8918f4d0256090ff1a8b90392 (patch)
tree73508159acd14e76dc92313df355849ee75ec35d /include/llvm/CodeGen/SelectionDAGNodes.h
parent1c3b8d6192c8d27aecfbfed5eb46e2863c595aa4 (diff)
downloadexternal_llvm-bcc946d7409ba0d8918f4d0256090ff1a8b90392.zip
external_llvm-bcc946d7409ba0d8918f4d0256090ff1a8b90392.tar.gz
external_llvm-bcc946d7409ba0d8918f4d0256090ff1a8b90392.tar.bz2
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/SelectionDAGNodes.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 316ae26..50d853c 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(); }