[llvm] [AArch64] Improve code generation for experimental.cttz.elts (PR #91505)
Hari Limaye via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 03:41:31 PDT 2024
================
@@ -1852,7 +1852,16 @@ bool AArch64TargetLowering::shouldExpandGetActiveLaneMask(EVT ResVT,
}
bool AArch64TargetLowering::shouldExpandCttzElements(EVT VT) const {
- return !Subtarget->hasSVEorSME() || VT != MVT::nxv16i1;
+ // Only SVE and SME architectures support BRKB and CNTP instructions.
----------------
hazzlim wrote:
No worries - Done.
https://github.com/llvm/llvm-project/pull/91505
More information about the llvm-commits
mailing list