diff options
author | Teddy <[email protected]> | 2014-04-30 17:05:33 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-04-30 17:05:33 +0800 |
commit | 6806fa4ff4a896f56fa69c37b9e45c6347cedf54 (patch) | |
tree | 22f94e65de426a4a9f61c8366f775552487900bb | |
parent | 73cb3efaaf6178aecec442629c373be129d10716 (diff) |
adjusted push scheme
-rw-r--r-- | ssa.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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: |