]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Added a comment about an idea on how to translate calls better. Gotta check some...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 28 Jun 2012 14:20:31 +0000 (16:20 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 28 Jun 2012 14:20:31 +0000 (16:20 +0200)
ir.c

diff --git a/ir.c b/ir.c
index 3d4db01ffad0803d68ac0dd60fedfa7fc1b61d9c..5cddb2ec07be9f24f0b58b2fd0752720d51197b4 100644 (file)
--- 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;