[llvm] [SPIR-V] Fixup storage class for global private (PR #116636)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 07:52:57 PST 2024
================
@@ -3337,11 +3343,8 @@ bool SPIRVInstructionSelector::selectGlobalValue(
if (HasInit && !Init)
return true;
- unsigned AddrSpace = GV->getAddressSpace();
- SPIRV::StorageClass::StorageClass Storage =
- addressSpaceToStorageClass(AddrSpace, STI);
bool HasLnkTy = GV->getLinkage() != GlobalValue::InternalLinkage &&
- Storage != SPIRV::StorageClass::Function;
+ StorageClass != SPIRV::StorageClass::Function;
----------------
Keenuts wrote:
Wait, static?
https://github.com/llvm/llvm-project/pull/116636
More information about the llvm-commits
mailing list