diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-04 19:28:27 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-04 19:28:27 +0000 |
commit | 29506f5e6da0316e598da917c36d47c50568a6af (patch) | |
tree | 8ef03fcd3af2e04b19014d4dc2cedd108f14573e /llvm/lib/CodeGen | |
parent | 2ef3031496d7d3380ce2152011f2e244293f83d9 (diff) | |
download | bcm5719-llvm-29506f5e6da0316e598da917c36d47c50568a6af.tar.gz bcm5719-llvm-29506f5e6da0316e598da917c36d47c50568a6af.zip |
Make sure -print-machineinstrs applies to the first pass as well.
llvm-svn: 159720
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/Passes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp index e4ad6c17bc2..69d6d00091a 100644 --- a/llvm/lib/CodeGen/Passes.cpp +++ b/llvm/lib/CodeGen/Passes.cpp @@ -433,9 +433,6 @@ void TargetPassConfig::addISelPrepare() { /// TODO: We could use a single addPre/Post(ID) hook to allow pass injection /// before/after any target-independent pass. But it's currently overkill. void TargetPassConfig::addMachinePasses() { - // Print the instruction selected machine code... - printAndVerify("After Instruction Selection"); - // Insert a machine instr printer pass after the specified pass. // If -print-machineinstrs specified, print machineinstrs after all passes. if (StringRef(PrintMachineInstrs.getValue()).equals("")) @@ -451,6 +448,9 @@ void TargetPassConfig::addMachinePasses() { insertPass(TID, IID); } + // Print the instruction selected machine code... + printAndVerify("After Instruction Selection"); + // Expand pseudo-instructions emitted by ISel. addPass(&ExpandISelPseudosID); |