================ @@ -5553,6 +5553,14 @@ static SDValue getSVEPredicateBitCast(EVT VT, SDValue Op, SelectionDAG &DAG) { if (InVT == VT) return Op; + // Look through casts to <n x 16 x i1> when their input has more lanes than + // VT. This will increase the chances of removing casts that introduce new + // lanes, which have to be explicitly zero'd. + if (Op.getOpcode() == ISD::INTRINSIC_WO_CHAIN && + Op.getConstantOperandVal(0) == Intrinsic::aarch64_sve_convert_to_svbool && ---------------- david-arm wrote:
Is this something that should have been caught by the SVEIntrinsicOpts pass? https://github.com/llvm/llvm-project/pull/110281 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits