mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 11:33:24 +02:00
Fix unused variable warnings. NFCI.
llvm-svn: 316964
This commit is contained in:
parent
21b08adda6
commit
937b242735
@ -2582,7 +2582,6 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
|
|||||||
}
|
}
|
||||||
// TODO ISD::SIGN_EXTEND_VECTOR_INREG
|
// TODO ISD::SIGN_EXTEND_VECTOR_INREG
|
||||||
case ISD::SIGN_EXTEND: {
|
case ISD::SIGN_EXTEND: {
|
||||||
EVT InVT = Op.getOperand(0).getValueType();
|
|
||||||
computeKnownBits(Op.getOperand(0), Known, DemandedElts, Depth + 1);
|
computeKnownBits(Op.getOperand(0), Known, DemandedElts, Depth + 1);
|
||||||
// If the sign bit is known to be zero or one, then sext will extend
|
// If the sign bit is known to be zero or one, then sext will extend
|
||||||
// it to the top bits, else it will just zext.
|
// it to the top bits, else it will just zext.
|
||||||
@ -2590,13 +2589,11 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ISD::ANY_EXTEND: {
|
case ISD::ANY_EXTEND: {
|
||||||
EVT InVT = Op.getOperand(0).getValueType();
|
|
||||||
computeKnownBits(Op.getOperand(0), Known, Depth+1);
|
computeKnownBits(Op.getOperand(0), Known, Depth+1);
|
||||||
Known = Known.zext(BitWidth);
|
Known = Known.zext(BitWidth);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ISD::TRUNCATE: {
|
case ISD::TRUNCATE: {
|
||||||
EVT InVT = Op.getOperand(0).getValueType();
|
|
||||||
computeKnownBits(Op.getOperand(0), Known, DemandedElts, Depth + 1);
|
computeKnownBits(Op.getOperand(0), Known, DemandedElts, Depth + 1);
|
||||||
Known = Known.trunc(BitWidth);
|
Known = Known.trunc(BitWidth);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user