From 6806fa4ff4a896f56fa69c37b9e45c6347cedf54 Mon Sep 17 00:00:00 2001 From: Teddy Date: Wed, 30 Apr 2014 17:05:33 +0800 Subject: adjusted push scheme --- ssa.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ssa.c b/ssa.c index e5d9d91..f38bf63 100644 --- a/ssa.c +++ b/ssa.c @@ -362,7 +362,7 @@ COpr_t ssa_postfix(CNode *p, CBlock_t cur, CInst_t lval, CBlock_t succ) { case POSTFIX_CALL: { CNode *arg = post->chd->chd; - CInst_t ps = NULL, t; + /* CInst_t ps = NULL, t; */ base->op = CALL; base->src1 = ssa_exp_(p->chd, cur, lval, succ); base->src2 = NULL; @@ -376,14 +376,16 @@ COpr_t ssa_postfix(CNode *p, CBlock_t cur, CInst_t lval, CBlock_t succ) { pi->src1 = ssa_exp_(arg, cur, lval, succ); pi->src2 = NULL; pi->dest = NULL; - pi->next = ps; - ps = pi; + /* pi->next = ps; + ps = pi; */ + cblock_append(cur, pi); } + /* for (; ps; ps = t) { t = ps->next; cblock_append(cur, ps); - } + } */ } break; default: -- cgit v1.2.3-70-g09d2