[llvm] [AArch64] Fix sign-extend-inreg combine for i1 types (PR #177976)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 26 08:52:43 PST 2026
================
@@ -27775,8 +27775,9 @@ performSignExtendInRegCombine(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
EVT EltTy = VT.getVectorElementType();
(void)EltTy;
- assert((EltTy == MVT::i8 || EltTy == MVT::i16 || EltTy == MVT::i32) &&
- "Sign extending from an invalid type");
+ if (EltTy.getSizeInBits() >
+ ExtOp.getValueType().getScalarType().getSizeInBits())
+ return SDValue();
----------------
MacDue wrote:
nit: above remove `(void)EltTy;`
https://github.com/llvm/llvm-project/pull/177976
More information about the llvm-commits
mailing list