From 62f7fb977c6ff967c3a40e3dd4e93f33aeb8b219 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 5 Oct 2012 18:19:44 +0000 Subject: Simplify code, don't or a bool with an uint64_t. No functionality change. llvm-svn: 165321 --- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 0f8b499787a..a5eccaeef16 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -7577,9 +7577,9 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) { SDValue StoredVal = St->getValue(); if (ConstantSDNode *C = dyn_cast(StoredVal)) { - NonZero |= (C->getZExtValue() != 0); + NonZero |= !C->isNullValue(); } else if (ConstantFPSDNode *C = dyn_cast(StoredVal)) { - NonZero |= C->getValueAPF().bitcastToAPInt().getZExtValue(); + NonZero |= !C->getConstantFPValue()->isNullValue(); } else { // Non constant. break; -- cgit v1.2.3