[all-commits] [llvm/llvm-project] 47b89f: [AArch64] Use i32 extract from UADDV in popcount l...

David Green via All-commits all-commits at lists.llvm.org
Tue May 20 10:09:39 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47b89fb412ad1b9c2dfc3ca34622a4315584c6e9
      https://github.com/llvm/llvm-project/commit/47b89fb412ad1b9c2dfc3ca34622a4315584c6e9
  Author: David Green <david.green at arm.com>
  Date:   2025-05-20 (Tue, 20 May 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/popcount.ll

  Log Message:
  -----------
  [AArch64] Use i32 extract from UADDV in popcount lowering. (#140718)

We need the top bits to be zeroes, but an v8i8->i32 EXTRACT_VECTOR_ELT will
anyext into the top bits. The instruction we create (UADDV) is known to be
zeroes in the upper bits, so we can convert to a larger v2i32 vector and
extract from there, similar to the operation currently performed for i64
types.

Fixes #140707



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list