[SelectionDAG} Use KnownBits::isUnknown and hasConflict. NFC

llvm-svn: 315154
This commit is contained in:
Craig Topper 2017-10-07 17:07:48 +00:00
parent 2f60295364
commit 90b76211d3
1 changed files with 8 additions and 8 deletions

View File

@ -2128,7 +2128,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
Known.Zero &= Known2.Zero;
// If we don't know any bits, early out.
if (!Known.One && !Known.Zero)
if (Known.isUnknown())
break;
}
break;
@ -2166,7 +2166,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
Known.Zero &= Known2.Zero;
}
// If we don't know any bits, early out.
if (!Known.One && !Known.Zero)
if (Known.isUnknown())
break;
if (!!DemandedRHS) {
SDValue RHS = Op.getOperand(1);
@ -2192,7 +2192,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
Known.Zero &= Known2.Zero;
}
// If we don't know any bits, early out.
if (!Known.One && !Known.Zero)
if (Known.isUnknown())
break;
}
break;
@ -2276,7 +2276,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
Known.One &= Known2.One.lshr(Offset).trunc(BitWidth);
Known.Zero &= Known2.Zero.lshr(Offset).trunc(BitWidth);
// If we don't know any bits, early out.
if (!Known.One && !Known.Zero)
if (Known.isUnknown())
break;
}
}
@ -2349,7 +2349,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
case ISD::SELECT:
computeKnownBits(Op.getOperand(2), Known, Depth+1);
// If we don't know any bits, early out.
if (!Known.One && !Known.Zero)
if (Known.isUnknown())
break;
computeKnownBits(Op.getOperand(1), Known2, Depth+1);
@ -2360,7 +2360,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
case ISD::SELECT_CC:
computeKnownBits(Op.getOperand(3), Known, Depth+1);
// If we don't know any bits, early out.
if (!Known.One && !Known.Zero)
if (Known.isUnknown())
break;
computeKnownBits(Op.getOperand(2), Known2, Depth+1);
@ -2838,7 +2838,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
computeKnownBits(Op.getOperand(0), Known, DemandedElts,
Depth + 1);
// If we don't know any bits, early out.
if (!Known.One && !Known.Zero)
if (Known.isUnknown())
break;
computeKnownBits(Op.getOperand(1), Known2, DemandedElts, Depth + 1);
Known.Zero &= Known2.Zero;
@ -2866,7 +2866,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
break;
}
assert((Known.Zero & Known.One) == 0 && "Bits known to be one AND zero?");
assert(!Known.hasConflict() && "Bits known to be one AND zero?");
}
SelectionDAG::OverflowKind SelectionDAG::computeOverflowKind(SDValue N0,