Or at least the sibling call cases which the DAG already handles.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
It would be nice if we can put the common code with AArch64 into some generic place instead of duplicating it.
Other than that, looks good.
llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp | ||
---|---|---|
967–970 | Checking the register mask seems pretty cheap, while checking argument assignment looks more expensive. | |
1224 | Can this use getStackAlignment() instead of hardcoding 16? | |
1236 | Same about getStackAlignment() | |
llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-sibling-call.ll | ||
371–373 | The parent does not use byval. Is this comment correct? |
Comment Actions
I left a nit inline. Apart from that, LGTM.
llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp | ||
---|---|---|
1172–1174 | Can this and the assert below use getStackAlignment() instead of hardcoding 16? |
llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp | ||
---|---|---|
1184 | The assert should also use getStackAlignment(). |