diff options
author | Teddy <[email protected]> | 2014-05-18 11:34:38 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-05-18 11:34:38 +0800 |
commit | b4bf1d0987c5bbf7e0dfa6f53cf81a2cb869d759 (patch) | |
tree | e0812fdcb85e6888a73c8bcc05f61a1cd5ef54cc | |
parent | d84e0dac79287b481a833cce3353c0d59fa7b9a1 (diff) |
...
-rw-r--r-- | compile_data/func_pointer.c | 2 | ||||
-rw-r--r-- | ssa.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/compile_data/func_pointer.c b/compile_data/func_pointer.c index 1d74894..f239b55 100644 --- a/compile_data/func_pointer.c +++ b/compile_data/func_pointer.c @@ -1,4 +1,4 @@ -#include <cstdio> +#include <stdio.h> typedef void (*Func_t)(); void f(Func_t func, int step) { if (!step) return; @@ -2145,7 +2145,7 @@ void const_propagation(void) { int i; for (i = bcnt - 1; i >= 0; i--) { - CBlock_t b = blks[vis[i]]; + CBlock_t b = blks[ord[i]]; CInst_t i, ni, ih = b->insts; for (i = ih->next; i != ih; i = ni) { @@ -2282,7 +2282,7 @@ void strength_reduction(void) { int call_cnt = 0; for (i = bcnt - 1; i >= 0; i--) { - CBlock_t b = blks[vis[i]]; + CBlock_t b = blks[ord[i]]; CInst_t i, ni, ih = b->insts; for (i = ih->next; i != ih; i = ni) { @@ -2615,7 +2615,7 @@ void deadcode_elimination() { int i; for (i = bcnt - 1; i >= 0; i--) { - CBlock_t b = blks[vis[i]]; + CBlock_t b = blks[ord[i]]; CInst_t i, ih = b->insts; for (i = ih->next; i != ih; i = i->next) { @@ -2626,7 +2626,7 @@ void deadcode_elimination() { } for (i = bcnt - 1; i >= 0; i--) { - CBlock_t b = blks[vis[i]]; + CBlock_t b = blks[ord[i]]; CInst_t i, ih = b->insts; for (i = ih->next; i != ih; i = i->next) if (i->op != CALL && i->dest && i->dest->kind == TMP && !i->dest->dep) |