summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-20 20:52:08 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-20 20:52:08 +0000
commit228e3f5fac0ceef9f6fe22d1621ac32bae5d3177 (patch)
tree07bbb7eb902414b75d6ff3364cfbfdbaaff8fbed /lib/CodeGen
parentb254c6d77a042ac175e101f6e06aa667446e1b77 (diff)
downloadllvm-228e3f5fac0ceef9f6fe22d1621ac32bae5d3177.tar.gz
llvm-228e3f5fac0ceef9f6fe22d1621ac32bae5d3177.tar.bz2
llvm-228e3f5fac0ceef9f6fe22d1621ac32bae5d3177.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/Passes.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp
index cfa3eecf02..56526f2732 100644
--- a/lib/CodeGen/Passes.cpp
+++ b/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) {