These spills need special CFI anyway, so implementing them directly
where CFI is emitted avoids the need to invent a mechanism to track them
from ISel.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/SIFrameLowering.cpp | ||
---|---|---|
1586 | The hard-coded SGPR size, I meant to come back and actually check relative to the SGPR. |
Rebase onto LLVM master. Tidy up code little bit and couple of fixes.
And also, handle cases where no free VGPR is available to spill into and we have to spill into memeory.
llvm/lib/Target/AMDGPU/SIFrameLowering.cpp | ||
---|---|---|
143 | Add a comment about why this is here. What is DwordOff about? | |
660 | Needs a comment explaining what this does. | |
716 | Needs a comment explaining what this does. | |
1232–1233 | Can this be simplified by splitting into multiple if statements and commented? All of the chained logical operations are difficult to parse. | |
1283 | Needs a comment. | |
1482 | Needs a comment. | |
1546 | Needs a comment. | |
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp | ||
428 ↗ | (On Diff #290938) | Needs a comment. |
Rebase onto LLVM trunk and couple of bug fixes where we need to save FP due to CFI register spills but did not save it.
Add a comment about why this is here. What is DwordOff about?