[llvm] [LLVM][CodeGen] Remove failure cases when widening EXTRACT/INSERT_SUBVECTOR. (PR #162308)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 08:52:02 PDT 2025


================
@@ -7447,9 +7469,7 @@ SDValue DAGTypeLegalizer::WidenVecOp_INSERT_SUBVECTOR(SDNode *N) {
   SDValue InVec = N->getOperand(0);
 
   EVT OrigVT = SubVec.getValueType();
-  if (getTypeAction(SubVec.getValueType()) == TargetLowering::TypeWidenVector)
-    SubVec = GetWidenedVector(SubVec);
----------------
paulwalker-arm wrote:

This change is not necessary but I don't see any way the if statement can be false given by this point the result (and thus first operand) should be legal.

https://github.com/llvm/llvm-project/pull/162308


More information about the llvm-commits mailing list