[llvm] [AArch64] Extend efficient lowering of experimental.cttz.elts (PR #92114)
Hari Limaye via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 04:27:48 PDT 2024
================
@@ -5838,9 +5840,21 @@ SDValue AArch64TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
return SDValue();
}
case Intrinsic::experimental_cttz_elts: {
- SDValue NewCttzElts =
- DAG.getNode(AArch64ISD::CTTZ_ELTS, dl, MVT::i64, Op.getOperand(1));
+ SDValue CttzOp = Op.getOperand(1);
+ EVT VT = CttzOp.getValueType();
+
+ if (!VT.isScalableVector()) {
----------------
hazzlim wrote:
Done.
https://github.com/llvm/llvm-project/pull/92114
More information about the llvm-commits
mailing list