projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6794d92
)
Make -print-machineinstrs show us the code both before and after reg. alloc.
author
Brian Gaeke
<gaeke@uiuc.edu>
Fri, 12 Mar 2004 21:19:08 +0000
(21:19 +0000)
committer
Brian Gaeke
<gaeke@uiuc.edu>
Fri, 12 Mar 2004 21:19:08 +0000
(21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12344
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/SparcV9/SparcV9TargetMachine.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index 485a358b230b1a1be0786955da4fd449a4e5e185..e8172c17ab53994ce769f9deb51d8f1ed59c4d2b 100644
(file)
--- 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());