From: Wolfgang (Blub) Bumiller Date: Thu, 28 Jun 2012 14:20:31 +0000 (+0200) Subject: Added a comment about an idea on how to translate calls better. Gotta check some... X-Git-Tag: 0.1-rc1~470 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7363e88cd7447f82e8339178511872e6901025fb;p=xonotic%2Fgmqcc.git Added a comment about an idea on how to translate calls better. Gotta check some papers for better solutions later --- diff --git a/ir.c b/ir.c index 3d4db01..5cddb2e 100644 --- a/ir.c +++ b/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;