summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-02-09 20:08:37 -0500
committerOri Bernstein <ori@eigenstate.org>2013-02-09 20:08:37 -0500
commit3dc71f6baaf6ff6a7e5a41fd89ea3ec2c7bdf88c (patch)
treec8835fcf079021cfdd06dce22933e5fba6ac4e9f
parentedea33eefb45d186ae3d5159223cec0ccb71ff1b (diff)
downloadmc-peephole-opt.tar.gz
Remove nearly-useless function.peephole-opt
There's no reason to put the BB transforms into another function.
-rw-r--r--6/peep.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/6/peep.c b/6/peep.c
index 12dda02..970f0ae 100644
--- a/6/peep.c
+++ b/6/peep.c
@@ -70,17 +70,12 @@ static void nopjmp(Isel *s, Asmbb *bb, size_t idx)
}
}
-static void bbpeep(Isel *s, Asmbb *bb, size_t idx)
-{
- deadcode(s, bb);
- nopjmp(s, bb, idx);
-}
-
void peep(Isel *s)
{
size_t i;
for (i = 0; i < s->nbb; i++) {
- bbpeep(s, s->bb[i], i);
+ deadcode(s, s->bb[i]);
+ nopjmp(s, s->bb[i], i);
}
}