[all-commits] [llvm/llvm-project] 4df492: AMDGPU/SDAG: Custom SETCC (i.e. ballot) is always ...
Nicolai Hähnle via All-commits
all-commits at lists.llvm.org
Mon Apr 11 12:04:59 PDT 2022
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: 2022-04-11 (Mon, 11 Apr 2022)
AMDGPU/SDAG: Custom SETCC (i.e. ballot) is always uniform
The AMDGPUISD::SETCC node is like ISD::SETCC, but returns a lane mask
instead of a per-lane boolean. The lane mask is uniform.
This improves instruction selection for code patterns like
ctpop(ballot(x)), which can now use an S_BCNT1_* instruction instead
GlobalISel already selects scalar instructions (an earlier commit
added a test case)..
Differential Revision: https://reviews.llvm.org/D123432
More information about the All-commits