diff --git a/tests/print_info.cpp b/tests/print_info.cpp index c8e17240..6a84bf7a 100644 --- a/tests/print_info.cpp +++ b/tests/print_info.cpp @@ -57,6 +57,15 @@ void PrintA32Instruction(u32 instruction) { fmt::print("should_continue: {}\n\n", should_continue); fmt::print("IR:\n"); fmt::print("{}\n", IR::DumpBlock(block)); + + Optimization::A32GetSetElimination(block); + Optimization::DeadCodeElimination(block); + Optimization::ConstantPropagation(block); + Optimization::DeadCodeElimination(block); + Optimization::IdentityRemovalPass(block); + + fmt::print("Optimized IR:\n"); + fmt::print("{}\n", IR::DumpBlock(block)); } void PrintA64Instruction(u32 instruction) { @@ -71,6 +80,7 @@ void PrintA64Instruction(u32 instruction) { fmt::print("{}\n", IR::DumpBlock(block)); Optimization::A64GetSetElimination(block); + Optimization::DeadCodeElimination(block); Optimization::ConstantPropagation(block); Optimization::DeadCodeElimination(block); Optimization::IdentityRemovalPass(block);