diff options
-rw-r--r-- | lib/Target/SparcV9/SparcV9TargetMachine.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp index 485a358..e8172c1 100644 --- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp @@ -161,10 +161,13 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out if (!DisableSched) PM.add(createInstructionSchedulingWithSSAPass(*this)); + if (PrintMachineCode) + PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before reg alloc:\n")); + PM.add(getRegisterAllocator(*this)); if (PrintMachineCode) - PM.add(createMachineFunctionPrinterPass(&std::cerr)); + PM.add(createMachineFunctionPrinterPass(&std::cerr, "After reg alloc:\n")); PM.add(createPrologEpilogInsertionPass()); |