[SelectionDAG] Remove unneeded assert from SelectionDAG::getSignedConstant. NFC (#114336)

This assert is also present inside the APInt constructor after #114539.
This commit is contained in:
Craig Topper
2024-11-04 14:43:08 -08:00
committed by GitHub
parent 22db91c5e8
commit 97b7474970

View File

@@ -1773,10 +1773,7 @@ SDValue SelectionDAG::getConstant(const ConstantInt &Val, const SDLoc &DL,
SDValue SelectionDAG::getSignedConstant(int64_t Val, const SDLoc &DL, EVT VT,
bool isT, bool isO) {
unsigned Size = VT.getScalarSizeInBits();
assert(
isIntN(Size, Val) &&
"getSignedConstant with a int64_t value that doesn't fit in the type!");
return getConstant(APInt(Size, Val, true), DL, VT, isT, isO);
return getConstant(APInt(Size, Val, /*isSigned=*/true), DL, VT, isT, isO);
}
SDValue SelectionDAG::getAllOnesConstant(const SDLoc &DL, EVT VT, bool IsTarget,