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 | f86c00f1f89082c800dbb78870fc5537eb3702f6 (patch) | |
tree | dac2ddc204f41a3b06de79618abe71a066828cdf /lib/CodeGen/Passes.cpp | |
parent | 25dd5fc1cdac89b40dce4ec75baf85f4182a1162 (diff) |
Make sure -print-machineinstrs applies to the first pass as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Passes.cpp')
-rw-r--r-- | lib/CodeGen/Passes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index e4ad6c17bc..69d6d00091 100644 --- a/lib/CodeGen/Passes.cpp +++ b/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); |