Add a verification pass after ExpandISelPseudos.
This pass often has weird CFG hacks and hand-written MI building code that can go wrong in many ways. llvm-svn: 162224
This commit is contained in:
parent
de31b52c3e
commit
1d0262677b
|
@ -456,7 +456,8 @@ void TargetPassConfig::addMachinePasses() {
|
||||||
printAndVerify("After Instruction Selection");
|
printAndVerify("After Instruction Selection");
|
||||||
|
|
||||||
// Expand pseudo-instructions emitted by ISel.
|
// Expand pseudo-instructions emitted by ISel.
|
||||||
addPass(&ExpandISelPseudosID);
|
if (addPass(&ExpandISelPseudosID))
|
||||||
|
printAndVerify("After ExpandISelPseudos");
|
||||||
|
|
||||||
// Add passes that optimize machine instructions in SSA form.
|
// Add passes that optimize machine instructions in SSA form.
|
||||||
if (getOptLevel() != CodeGenOpt::None) {
|
if (getOptLevel() != CodeGenOpt::None) {
|
||||||
|
|
Loading…
Reference in New Issue