[PATCH] D159283: Add intrinsic to count trailing zero elements in a vector

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 26 01:16:24 PDT 2023


nikic added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.h:338
 
+  CTTZ_ELTS,
+
----------------
If you need an ISD opcode anyway, maybe make it a generic one right away? Having a generic ISD opcode and expanding it during legalization is generally preferred over doing an expansion in SDAGBuilder, as this allows for more optimal legalizations if the operation is supported only for some types.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159283/new/

https://reviews.llvm.org/D159283



More information about the llvm-commits mailing list