The function could return zero if an extreme number or
registers were used. Minimal possible occupancy is 1.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Bug is trivial and testcase must be huge to hit this condition. You need to have thousands of spills for this.
Comment Actions
It happens in the scheduler. These are still virtual registers and there are no spills yet.
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp | ||
---|---|---|
602 ↗ | (On Diff #220893) | (Could also do getTotalNumVGPRs() + RoundedRegs - 1) / RoundedRegs |