diff options
Diffstat (limited to 'src/opt.c')
| -rw-r--r-- | src/opt.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -1,14 +1,26 @@ +#include <stdio.h> + #include <qbt/opt.h> #include <qbt/regalloc.h> -#include <qbt/unreachable.h> #include <qbt/ssa.h> #include <qbt/abi.h> void optimize(struct fn *f) { + printf("\n// initial:\n"); + dump_function(f); + + /* unreachability is done in several steps I guess */ ssa(f); + printf("\n// after SSA:\n"); + dump_function(f); + abi0(f); + printf("\n// after abi0:\n"); + dump_function(f); + /* ... do more stuff ... */ - unreachable(f); regalloc(f); + printf("\n// after regalloc:\n"); + dump_function(f); } |
