[clang] [llvm] [AArch64][SVE] Fix definition of bfloat fcvt intrinsics. (PR #110281)
David Sherwood via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 1 09:39:11 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list