mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
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
This commit is contained in:
parent
1bc03e6a05
commit
ebd7eabca4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user