[amdgpu] Increase alignment of all LDS variables
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Sun, 12 Dec 2021 19:30:32 +0000 (19:30 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Sun, 12 Dec 2021 19:30:32 +0000 (19:30 +0000)
commit24b28db8ccd6afabb99e770d555dadfc3cced9b7
tree1f0aa40ee282d1468941c2b1aab7caedcaecddc4
parentd2377f24e13549f08bbddfe9af8e8b61e9528581
[amdgpu] Increase alignment of all LDS variables

Currently the superalign option only increases the alignment of
variables that are moved into the module.lds block. Change that to all LDS
variables. Also only increase the alignment once, instead of once per function.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D115488
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
llvm/test/CodeGen/AMDGPU/lower-kernel-lds-super-align.ll