Details
- Reviewers
• tstellarAMD arsenm
Diff Detail
Event Timeline
| lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp | ||
|---|---|---|
| 128–129 | You probably want to use GV.users() instead | |
| 133 | Missing space before { | |
| test/CodeGen/AMDGPU/promote-alloca-globals.ll | ||
| 2 | You should also include an llc run line and check for the final LDS usage | |
| 4 | This should be after a CHECK-LABEL for the function name and moved down to the function | |
| 10–12 | Can you run opt -instnamer on the test | |
| 25 | This GEP isn't used? | |
| test/CodeGen/AMDGPU/promote-alloca-globals.ll | ||
|---|---|---|
| 2 | How do you check for LDS usage? I can't find anything about LDS except the numerical representations of the RSRC registers. | |
| 25 | It isn't as we just need a user of the global array to be used by an instruction inside the function to let the AMDGPUPromoteAlloca associate it with this function. I'll probably add a user though, to prevent llc from optimizing the LDS array away. | |
| test/CodeGen/AMDGPU/promote-alloca-globals.ll | ||
|---|---|---|
| 2 | It doesn't look like we emit this currently. You emit this information from the AMDGPUAsmPrinter.cpp with the rest of the Kernel info. | |
v2: - Use users.
- Check LDS size in testcase.
- Ran instnamer on testcase.
- Changed unused GEP.
- Enlarge array for 64 KiB LDS.
You probably want to use GV.users() instead