[PATCH] D57748: AMDGPU: Add inverse ballot intrinsic

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 7 09:42:43 PST 2019


nhaehnle added a comment.

Why can't we recognize this as a pattern? Basically, it's just `(src & (1 << thread_idx))`, and `thread_idx` can be matched as a sequence of `mbcnt` intrinsics.

Hmm, except the SelectionDAG is only per-basic block. Ugh.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D57748





More information about the llvm-commits mailing list