[llvm] clastb representation in existing IR, and AArch64 codegen (PR #112738)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 07:26:30 PST 2025


================
@@ -3379,6 +3379,20 @@ let Predicates = [HasSVE_or_SME] in {
   def : Pat<(i64 (vector_extract nxv2i64:$vec, VectorIndexD:$index)),
             (UMOVvi64 (v2i64 (EXTRACT_SUBREG ZPR:$vec, zsub)), VectorIndexD:$index)>;
 
+  // Find index of last active lane. This is a fallback in case we miss the
+  // opportunity to fold into a lastb or clastb directly.
----------------
MacDue wrote:

Are these fallback patterns tested in the final patch?

https://github.com/llvm/llvm-project/pull/112738


More information about the llvm-commits mailing list