Apart from the argument registers, set the CostPerUse
value as per the ratio reg_index/allocation_granularity. 
It is a pre-commit for introducing the scratch registers 
in the ABI. This change should help in a balanced 
register allocation.
Details
Details
- Reviewers
 arsenm - Commits
 - rG728b878de689: [AMDGPU] Set the CostPerUse value for vgpr registers.
 
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
Comment Actions
LGTM except don't call it a cost model in the final commit message, it's just the cost
| llvm/lib/Target/AMDGPU/SIRegisterInfo.td | ||
|---|---|---|
| 220 | Capitalize  | |
Comment Actions
The patch has caused vgpr count to go up significantly in real-world graphics content. Agreed with @cdevadas to revert for now.
Capitalize