aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-05-18 11:34:38 +0800
committerTeddy <ted.sybil@gmail.com>2014-05-18 11:34:38 +0800
commitb4bf1d0987c5bbf7e0dfa6f53cf81a2cb869d759 (patch)
treee0812fdcb85e6888a73c8bcc05f61a1cd5ef54cc
parentd84e0dac79287b481a833cce3353c0d59fa7b9a1 (diff)
...
-rw-r--r--compile_data/func_pointer.c2
-rw-r--r--ssa.c8
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;
diff --git a/ssa.c b/ssa.c
index ba76a2b..e1c0e4c 100644
--- a/ssa.c
+++ b/ssa.c
@@ -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)