diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-20 20:52:08 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-20 20:52:08 +0000 |
commit | 1d0262677b1cfdef9f6d54b5de92e93ab10cf402 (patch) | |
tree | ec194538f38fee5e8f2ef7b1f7040f6432560061 /llvm/lib | |
parent | de31b52c3e79f3fc4866f1727b7b369128e07cbb (diff) | |
download | bcm5719-llvm-1d0262677b1cfdef9f6d54b5de92e93ab10cf402.tar.gz bcm5719-llvm-1d0262677b1cfdef9f6d54b5de92e93ab10cf402.zip |
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
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/Passes.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp index cfa3eecf02e..56526f2732d 100644 --- a/llvm/lib/CodeGen/Passes.cpp +++ b/llvm/lib/CodeGen/Passes.cpp @@ -456,7 +456,8 @@ void TargetPassConfig::addMachinePasses() { printAndVerify("After Instruction Selection"); // Expand pseudo-instructions emitted by ISel. - addPass(&ExpandISelPseudosID); + if (addPass(&ExpandISelPseudosID)) + printAndVerify("After ExpandISelPseudos"); // Add passes that optimize machine instructions in SSA form. if (getOptLevel() != CodeGenOpt::None) { |