[llvm] [SelectionDAG] Fix zext assertion check for scalable vectors (PR #176064)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 14 16:15:33 PST 2026
================
@@ -1591,7 +1594,8 @@ SDValue SelectionDAG::getVPZeroExtendInReg(SDValue Op, SDValue Mask,
"getVPZeroExtendInReg type and operand type should be vector!");
assert(VT.getVectorElementCount() == OpVT.getVectorElementCount() &&
"Vector element counts must match in getZeroExtendInReg");
- assert(VT.bitsLE(OpVT) && "Not extending!");
+ assert(VT.getScalarType().bitsLE(OpVT.getScalarType()) &&
----------------
topperc wrote:
This same assert exists in getZeroExtendInReg, should it be updated too?
https://github.com/llvm/llvm-project/pull/176064
More information about the llvm-commits
mailing list