llvm-project
e2c8f57f - [OpenMPOpt] Null generic-mode wrappers for SPMDized kernels (#207611)

Commit
105 days ago
[OpenMPOpt] Null generic-mode wrappers for SPMDized kernels (#207611) If a kernel gets SPMDized, it doesn't need the wrapper function that is passed to __kmpc_parallel_60. Keeping the dead wrapper function can lead to lots of misleading "local memory global used by non-kernel function" AMDGPU backend warnings. Let OpenMPOpt null the wrapper argument such that DCE can then remove the corresponding dead functions. Claude assisted with this patch.
Author
Parents
Loading