aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-10-05 18:19:44 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-10-05 18:19:44 +0000
commitebd7eabca4c090175b71f221e880f8bd937a4523 (patch)
tree047a149a13e0988720b6dff096c3a7b7ee1a7432 /lib/CodeGen
parent1bc03e6a052f0de0eda791b59bd0e879d1b8420e (diff)
Simplify code, don't or a bool with an uint64_t.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 0f8b499787..a5eccaeef1 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -7577,9 +7577,9 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) {
SDValue StoredVal = St->getValue();
if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(StoredVal)) {
- NonZero |= (C->getZExtValue() != 0);
+ NonZero |= !C->isNullValue();
} else if (ConstantFPSDNode *C = dyn_cast<ConstantFPSDNode>(StoredVal)) {
- NonZero |= C->getValueAPF().bitcastToAPInt().getZExtValue();
+ NonZero |= !C->getConstantFPValue()->isNullValue();
} else {
// Non constant.
break;