[all-commits] [llvm/llvm-project] b75ab5: [AMDGPU] Match bitsin(typeof(x)) - ctpop(x) to s_b...
Patrick Simmons via All-commits
all-commits at lists.llvm.org
Thu Jul 30 13:27:35 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b75ab58e83301a56e958ea011fd851c88d976fe5
https://github.com/llvm/llvm-project/commit/b75ab58e83301a56e958ea011fd851c88d976fe5
Author: Patrick Simmons <patrick.simmons at amd.com>
Date: 2026-07-30 (Thu, 30 Jul 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/SOPInstructions.td
A llvm/test/CodeGen/AMDGPU/s_bcnt0.ll
M llvm/test/CodeGen/AMDGPU/s_cmp_0.ll
Log Message:
-----------
[AMDGPU] Match bitsin(typeof(x)) - ctpop(x) to s_bcnt0_i32 (#164847)
This PR optimizes the pattern bitsin(typeof(x)) - popcnt(x) to
s_bcnt0_i32 on AMDGPU. It also creates a Clang builtin for s_bcnt0_i32
so that users can call this instruction directly instead of relying on
the compiler to match this pattern.
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