Skip to content

Commit 9befbe2

Browse files
committed
[AMDGPU] Should return a value instead of llvm_unreachable in getLdsDwGranularity
We may compile with no target, and do not expect a unreachanle failure.
1 parent 60681ff commit 9befbe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3554,7 +3554,7 @@ unsigned getLdsDwGranularity(const MCSubtargetInfo &ST) {
35543554
return 320;
35553555
if (ST.getFeatureBits().test(FeatureAddressableLocalMemorySize327680))
35563556
return 512;
3557-
llvm_unreachable("Unknown Subtarget");
3557+
return 64; //In sync with getAddressableLocalMemorySize
35583558
}
35593559

35603560
bool isPackedFP32Inst(unsigned Opc) {

0 commit comments

Comments
 (0)