mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[SelectionDAG} Use KnownBits::isUnknown and hasConflict. NFC
llvm-svn: 315154
This commit is contained in:
parent
04668e72df
commit
09f6a394af
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user