[AMDGPU] Remove an unnecessary cast (NFC) (#154470)

getAddressableLocalMemorySize() already returns unsigned.
This commit is contained in:
Kazu Hirata 2025-08-19 22:45:12 -07:00 committed by GitHub
parent fad3272286
commit fab0860685
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1123,8 +1123,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
Ctx.diagnose(Diag);
}
if (MFI->getLDSSize() >
static_cast<unsigned>(STM.getAddressableLocalMemorySize())) {
if (MFI->getLDSSize() > STM.getAddressableLocalMemorySize()) {
LLVMContext &Ctx = MF.getFunction().getContext();
DiagnosticInfoResourceLimit Diag(
MF.getFunction(), "local memory", MFI->getLDSSize(),