-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMDGPU] Support double type in atomic optimizer. (#84307)
Presently the atomic optimizer supports only 32-bit operations. Plan is to extend the atomic optimizer for 64-bit operations for compute and graphics. This patch extends support for double type for `uniform values` only. Going forward, will extend the support for divergent values. Adding support for divergent values requires extending/legalizing readfirstlane, readlane, writelane, etc ops for 64-bit operations to avoid `bitcast` noise that we have currently. --------- Authored-by: Pravin Jagtap <Pravin.Jagtap@amd.com>
- Loading branch information
1 parent
c67ed2f
commit e1a8120
Showing
9 changed files
with
20,497 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
274 changes: 223 additions & 51 deletions
274
llvm/test/CodeGen/AMDGPU/GlobalISel/fp64-atomics-gfx90a.ll
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
560 changes: 560 additions & 0 deletions
560
llvm/test/CodeGen/AMDGPU/global_atomic_optimizer_fp_rtn.ll
Large diffs are not rendered by default.
Oops, something went wrong.
420 changes: 420 additions & 0 deletions
420
llvm/test/CodeGen/AMDGPU/global_atomics_optimizer_fp_no_rtn.ll
Large diffs are not rendered by default.
Oops, something went wrong.
5,578 changes: 5,578 additions & 0 deletions
5,578
llvm/test/CodeGen/AMDGPU/global_atomics_scan_fadd.ll
Large diffs are not rendered by default.
Oops, something went wrong.
3,960 changes: 3,960 additions & 0 deletions
3,960
llvm/test/CodeGen/AMDGPU/global_atomics_scan_fmax.ll
Large diffs are not rendered by default.
Oops, something went wrong.
3,960 changes: 3,960 additions & 0 deletions
3,960
llvm/test/CodeGen/AMDGPU/global_atomics_scan_fmin.ll
Large diffs are not rendered by default.
Oops, something went wrong.
5,576 changes: 5,576 additions & 0 deletions
5,576
llvm/test/CodeGen/AMDGPU/global_atomics_scan_fsub.ll
Large diffs are not rendered by default.
Oops, something went wrong.