[clang] [llvm] [AMDGPU] Match bitsin(typeof(x)) - ctpop(x) to s_bcnt0_i32 (PR #164847)
Jay Foad via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 23 02:55:40 PDT 2026
jayfoad wrote:
Really I'd prefer to have the "not" pattern _instead_ of the "sub" pattern, so we can better handle IR that has been canonicalized by InstCombine.
> We can't get rid of the pattern I have, because it's firing in cases where yours doesn't fire.
Firing, yes, but does it actually make the resulting code any better?
https://github.com/llvm/llvm-project/pull/164847
More information about the cfe-commits
mailing list