mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
Added a comment about an idea on how to translate calls better. Gotta check some papers for better solutions later
This commit is contained in:
parent
e934e77cc5
commit
7363e88cd7
1 changed files with 8 additions and 0 deletions
8
ir.c
8
ir.c
|
@ -2120,6 +2120,14 @@ tailcall:
|
|||
if (instr->opcode >= INSTR_CALL0 && instr->opcode <= INSTR_CALL8) {
|
||||
/* Trivial call translation:
|
||||
* copy all params to OFS_PARM*
|
||||
*
|
||||
* NOTES on how to do it better without much trouble:
|
||||
* -) The liferanges!
|
||||
* Simply check the liferange of all parameters for
|
||||
* other CALLs. For each param with no CALL in its
|
||||
* liferange, we can store it in an OFS_PARM at
|
||||
* generation already. This would even include later
|
||||
* reuse.... probably... :)
|
||||
*/
|
||||
printf("TODO: call instruction\n");
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue