[all-commits] [llvm/llvm-project] 9cf995: [AMDGPU] Promote generic pointer kernel arguments ...
Stanislav Mekhanoshin via All-commits
all-commits at lists.llvm.org
Tue Oct 12 10:07:50 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9cf995be6bb7096747710876f2f2239b4d8367a8
https://github.com/llvm/llvm-project/commit/9cf995be6bb7096747710876f2f2239b4d8367a8
Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date: 2021-10-12 (Tue, 12 Oct 2021)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPU.h
A llvm/lib/Target/AMDGPU/AMDGPUPromoteKernelArguments.cpp
M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
M llvm/lib/Target/AMDGPU/CMakeLists.txt
M llvm/test/CodeGen/AMDGPU/opt-pipeline.ll
A llvm/test/CodeGen/AMDGPU/promote-kernel-arguments.ll
Log Message:
-----------
[AMDGPU] Promote generic pointer kernel arguments into global
The new pass walks kernel's pointer arguments, then loads from them.
If a loaded value is a pointer and loaded pointer is unmodified in
the kernel before the load, then promote loaded pointer to global.
Then recursively continue.
Differential Revision: https://reviews.llvm.org/D111464
More information about the All-commits
mailing list