[llvm] [AArch64] NFC: Replace CTTZ_ELTS predicate pattern with predicate. (PR #179909)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 5 03:34:00 PST 2026
================
@@ -1225,7 +1225,7 @@ def AArch64rshrnb_pf : PatFrags<(ops node:$rs, node:$i),
(int_aarch64_sve_rshrnb node:$rs, node:$i)]>;
def AArch64CttzElts : SDNode<"AArch64ISD::CTTZ_ELTS", SDTypeProfile<1, 2,
- [SDTCisInt<0>, SDTCisVec<1>, SDTCisInt<2>]>, []>;
+ [SDTCisInt<0>, SDTCisVec<1>, SDTCisVec<2>]>, []>;
----------------
paulwalker-arm wrote:
```suggestion
[SDTCisInt<0>, SDTCisVec<1>, SDTCVecEltisVT<1,i1>, SDTCisSameAs<1,2>]>, []>;
```
I'm assuming we're happy to restrict this to just predicates, if not then I recommend `SDTCVecEltisVT<1,i1>, SDTCisSameNumEltsAs<1,2>`.
https://github.com/llvm/llvm-project/pull/179909
More information about the llvm-commits
mailing list