[llvm-commits] [llvm] r159720 - /llvm/trunk/lib/CodeGen/Passes.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Jul 4 12:28:27 PDT 2012
Author: stoklund
Date: Wed Jul 4 14:28:27 2012
New Revision: 159720
URL: http://llvm.org/viewvc/llvm-project?rev=159720&view=rev
Log:
Make sure -print-machineinstrs applies to the first pass as well.
Modified:
llvm/trunk/lib/CodeGen/Passes.cpp
Modified: llvm/trunk/lib/CodeGen/Passes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/Passes.cpp?rev=159720&r1=159719&r2=159720&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/Passes.cpp (original)
+++ llvm/trunk/lib/CodeGen/Passes.cpp Wed Jul 4 14:28:27 2012
@@ -433,9 +433,6 @@
/// 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 @@
insertPass(TID, IID);
}
+ // Print the instruction selected machine code...
+ printAndVerify("After Instruction Selection");
+
// Expand pseudo-instructions emitted by ISel.
addPass(&ExpandISelPseudosID);
More information about the llvm-commits
mailing list