We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cdaf2c commit 80522f9Copy full SHA for 80522f9
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -918,11 +918,7 @@ unsigned getWavefrontSize(const MCSubtargetInfo *STI) {
918
}
919
920
unsigned getLocalMemorySize(const MCSubtargetInfo *STI) {
921
- unsigned BytesPerCU = 0;
922
- if (STI->getFeatureBits().test(FeatureLocalMemorySize32768))
923
- BytesPerCU = 32768;
924
- if (STI->getFeatureBits().test(FeatureLocalMemorySize65536))
925
- BytesPerCU = 65536;
+ unsigned BytesPerCU = getAddressableLocalMemorySize(STI);
926
927
// "Per CU" really means "per whatever functional block the waves of a
928
// workgroup must share". So the effective local memory size is doubled in
0 commit comments