Allow only up to 1/4 of available VGPRs for the vectorization
of any given alloca.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp | ||
---|---|---|
439 | This seems like a huge default. I thought we previously limited this to 16 VGPRs. There should also probably be a cl::opt for this too |
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp | ||
---|---|---|
439 | We did not limit it to 16 VGPRs but to 16 elements. This limit is still here. The problem this limit solves is different, it is when you only have limited number of registers not to run out of them. Like wg size 1024 leaves us with 64 VGPRs and then the limit would be 16. |
This seems like a huge default. I thought we previously limited this to 16 VGPRs. There should also probably be a cl::opt for this too