[LegalizeVectorTypes] Remove a tautological compare.
authorCraig Topper <craig.topper@sifive.com>
Thu, 4 Mar 2021 07:25:46 +0000 (23:25 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 4 Mar 2021 07:26:00 +0000 (23:26 -0800)
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

index f704064..2fca0f3 100644 (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;
   }