Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp | ||
---|---|---|
216–221 ↗ | (On Diff #88255) | Should check if MinNumSGPRs is less than TRAP_NUM_SGPRS, and perform the rounding after the subtraction? If so then replace with: unsigned MinNumSGPRs = getTotalNumSGPRs(Features) / (WavesPerEU + 1); if (Features.test(FeatureTrapHandler)) MinNumSGPRs -= std::min(MinNumSGPRs, TRAP_NUM_SGPRS); MinNumSGPRs = alignDown(MinNumSGPRs, getSGPRAllocGranule(Features)) + 1; return std::min(MinNumSGPRs, getAddressableNumSGPRs(Features)); |
228–236 ↗ | (On Diff #88255) | Should check if MaxNumSGPRs is less than TRAP_NUM_SGPRS? If so then replace with: IsaVersion Version = getIsaVersion(Features); unsigned AddressableNumSGPRs = getAddressableNumSGPRs(Features); if (Version.Major >= 8 && !Addressable) AddressableNumSGPRs = 112; unsigned MaxNumSGPRs = getTotalNumSGPRs(Features) / WavesPerEU; if (Features.test(FeatureTrapHandler)) MaxNumSGPRs -= std::min(MaxNumSGPRs, TRAP_NUM_SGPRS) ; MaxNumSGPRs = alignDown(MaxNumSGPRs, getSGPRAllocGranule(Features)); return std::min(MaxNumSGPRs, AddressableNumSGPRs); |
231–233 ↗ | (On Diff #88255) | Why is this needed? Why is getAddressableNumSGPRs not returning the correct value for each target? |
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp | ||
---|---|---|
231–233 ↗ | (On Diff #88255) | I talked to Tony offline about this. I will do relevant changes after this change lands. |
Comment Actions
LGTM
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp | ||
---|---|---|
379 ↗ | (On Diff #146918) | Remove space before ; |