[PATCH] D76356: [AMDGPU] Introduce more scratch registers in the ABI.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 18 08:42:46 PDT 2020
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.td:220-223
+ // set a cost value for vgprs other than the argument registers (v0-v31).
+ // The ratio of index/allocation_granularity is taken as the cost value.
+ // Considered the allocation granularity as 4 here.
+ let CostPerUse=!if(!gt(Index, 31), !srl(Index, 2), 0) in {
----------------
cdevadas wrote:
> arsenm wrote:
> > This part should be split into a separate change
> Do you prefer it as a separate commit?
Yes, this can be committed independently
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76356/new/
https://reviews.llvm.org/D76356
More information about the llvm-commits
mailing list