[LegalizeVectorTypes] Remove a tautological compare.

This commit is contained in:
Craig Topper 2021-03-03 23:25:46 -08:00
parent 3dcbfa27d4
commit 90b7825598
1 changed files with 1 additions and 1 deletions

View File

@ -1268,7 +1268,7 @@ void DAGTypeLegalizer::SplitVecRes_INSERT_SUBVECTOR(SDNode *N, SDValue &Lo,
// vector, and insert into the lower half of the split vector directly.
// Similarly if the subvector is fully in the high half.
unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
if (IdxVal >= 0 && IdxVal + SubElems <= LoElems) {
if (IdxVal + SubElems <= LoElems) {
Lo = DAG.getNode(ISD::INSERT_SUBVECTOR, dl, LoVT, Lo, SubVec, Idx);
return;
}