mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 22:06:06 +00:00
Revert "[amdgpu][lds] Simplify error diag path - lds variable names are no longer special"
Test case didn't run locally, investigating This reverts commit 7bad469182ff2f6423ea209d5a1e81acca600568.
This commit is contained in:
parent
7bad469182
commit
4e0ba801ea
@ -1508,6 +1508,7 @@ SDValue AMDGPUTargetLowering::LowerGlobalAddress(AMDGPUMachineFunction* MFI,
|
||||
if (G->getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS ||
|
||||
G->getAddressSpace() == AMDGPUAS::REGION_ADDRESS) {
|
||||
if (!MFI->isModuleEntryFunction() &&
|
||||
GV->getName() != "llvm.amdgcn.module.lds" &&
|
||||
!AMDGPU::isNamedBarrier(*cast<GlobalVariable>(GV))) {
|
||||
SDLoc DL(Op);
|
||||
const Function &Fn = DAG.getMachineFunction().getFunction();
|
||||
|
@ -2978,6 +2978,7 @@ bool AMDGPULegalizerInfo::legalizeGlobalValue(
|
||||
|
||||
if (AS == AMDGPUAS::LOCAL_ADDRESS || AS == AMDGPUAS::REGION_ADDRESS) {
|
||||
if (!MFI->isModuleEntryFunction() &&
|
||||
GV->getName() != "llvm.amdgcn.module.lds" &&
|
||||
!AMDGPU::isNamedBarrier(*cast<GlobalVariable>(GV))) {
|
||||
const Function &Fn = MF.getFunction();
|
||||
DiagnosticInfoUnsupported BadLDSDecl(
|
||||
|
Loading…
x
Reference in New Issue
Block a user