diff options
author | Ori Bernstein <ori@eigenstate.org> | 2013-02-09 20:08:37 -0500 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2013-02-09 20:08:37 -0500 |
commit | 3dc71f6baaf6ff6a7e5a41fd89ea3ec2c7bdf88c (patch) | |
tree | c8835fcf079021cfdd06dce22933e5fba6ac4e9f | |
parent | edea33eefb45d186ae3d5159223cec0ccb71ff1b (diff) | |
download | mc-3dc71f6baaf6ff6a7e5a41fd89ea3ec2c7bdf88c.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.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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); } } |