From 7363e88cd7447f82e8339178511872e6901025fb Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Thu, 28 Jun 2012 16:20:31 +0200 Subject: [PATCH] Added a comment about an idea on how to translate calls better. Gotta check some papers for better solutions later --- ir.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.2