print_info: Print IR for A32 instructions

This commit is contained in:
MerryMage 2020-04-29 15:33:56 +01:00
parent 8498ac34d5
commit d86a6f2211

View file

@ -57,6 +57,15 @@ void PrintA32Instruction(u32 instruction) {
fmt::print("should_continue: {}\n\n", should_continue); fmt::print("should_continue: {}\n\n", should_continue);
fmt::print("IR:\n"); fmt::print("IR:\n");
fmt::print("{}\n", IR::DumpBlock(block)); 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) { void PrintA64Instruction(u32 instruction) {
@ -71,6 +80,7 @@ void PrintA64Instruction(u32 instruction) {
fmt::print("{}\n", IR::DumpBlock(block)); fmt::print("{}\n", IR::DumpBlock(block));
Optimization::A64GetSetElimination(block); Optimization::A64GetSetElimination(block);
Optimization::DeadCodeElimination(block);
Optimization::ConstantPropagation(block); Optimization::ConstantPropagation(block);
Optimization::DeadCodeElimination(block); Optimization::DeadCodeElimination(block);
Optimization::IdentityRemovalPass(block); Optimization::IdentityRemovalPass(block);