diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2022-04-08 10:52:13 -0500 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2022-04-11 14:04:21 -0500 |
commit | 4df4922da6cd9d4f58aa17bd3a54435d947570fd (patch) | |
tree | ada7534d398e10a1cd36fde62f2463a49be1d653 /clang/lib/Basic/FileManager.cpp | |
parent | 15a65594c1c0321671a827582fd66a22e0dbdc6e (diff) | |
download | llvm-4df4922da6cd9d4f58aa17bd3a54435d947570fd.zip llvm-4df4922da6cd9d4f58aa17bd3a54435d947570fd.tar.gz llvm-4df4922da6cd9d4f58aa17bd3a54435d947570fd.tar.bz2 |
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
of V_BCNT_*.
GlobalISel already selects scalar instructions (an earlier commit
added a test case)..
Differential Revision: https://reviews.llvm.org/D123432
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions