forked from OSchip/llvm-project
Make sure -print-machineinstrs applies to the first pass as well.
llvm-svn: 159720
This commit is contained in:
parent
2ef3031496
commit
29506f5e6d
|
@ -433,9 +433,6 @@ void TargetPassConfig::addISelPrepare() {
|
||||||
/// TODO: We could use a single addPre/Post(ID) hook to allow pass injection
|
/// 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.
|
/// before/after any target-independent pass. But it's currently overkill.
|
||||||
void TargetPassConfig::addMachinePasses() {
|
void TargetPassConfig::addMachinePasses() {
|
||||||
// Print the instruction selected machine code...
|
|
||||||
printAndVerify("After Instruction Selection");
|
|
||||||
|
|
||||||
// Insert a machine instr printer pass after the specified pass.
|
// Insert a machine instr printer pass after the specified pass.
|
||||||
// If -print-machineinstrs specified, print machineinstrs after all passes.
|
// If -print-machineinstrs specified, print machineinstrs after all passes.
|
||||||
if (StringRef(PrintMachineInstrs.getValue()).equals(""))
|
if (StringRef(PrintMachineInstrs.getValue()).equals(""))
|
||||||
|
@ -451,6 +448,9 @@ void TargetPassConfig::addMachinePasses() {
|
||||||
insertPass(TID, IID);
|
insertPass(TID, IID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Print the instruction selected machine code...
|
||||||
|
printAndVerify("After Instruction Selection");
|
||||||
|
|
||||||
// Expand pseudo-instructions emitted by ISel.
|
// Expand pseudo-instructions emitted by ISel.
|
||||||
addPass(&ExpandISelPseudosID);
|
addPass(&ExpandISelPseudosID);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue