diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-11 21:47:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-11 21:47:37 +0000 |
commit | 027253b0d576eddda6cbac62e2531b5f132060c2 (patch) | |
tree | 255f8434ac05f191f013c9b661f95081972e6094 /llvm | |
parent | 15b2e377ae27926f5453e639837f6b89619ee831 (diff) | |
download | llvm-027253b0d576eddda6cbac62e2531b5f132060c2.zip llvm-027253b0d576eddda6cbac62e2531b5f132060c2.tar.gz llvm-027253b0d576eddda6cbac62e2531b5f132060c2.tar.bz2 |
verifyFunction depends on dominator info, which levelraise does not declare
that it needs. This is pretty scary code! This fixes
Regression.Transforms.LevelRaise.2002-07-16-SourceAndDestCrash
Regression.Transforms.LevelRaise.2002-07-31-AssertionFailure
llvm-svn: 10406
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/LevelRaise.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp index c5be82f..3dcb501 100644 --- a/llvm/lib/Transforms/LevelRaise.cpp +++ b/llvm/lib/Transforms/LevelRaise.cpp @@ -21,7 +21,6 @@ #include "llvm/Pass.h" #include "llvm/ConstantHandling.h" #include "llvm/Analysis/Expressions.h" -#include "llvm/Analysis/Verifier.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "Support/CommandLine.h" #include "Support/Debug.h" @@ -295,8 +294,6 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { << BB->getParent()); } - DEBUG(assert(verifyFunction(*BB->getParent()) == false && - "Function broken!")); BI = BB->begin(); // Rescan basic block. BI might be invalidated. ++NumExprTreesConv; return true; @@ -320,8 +317,6 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { PRINT_PEEPHOLE1("CAST-DEST-EXPR-CONV:out", Src); DEBUG(std::cerr << "DONE CONVERTING EXPR TYPE: \n\n" << BB->getParent()); - DEBUG(assert(verifyFunction(*BB->getParent()) == false && - "Function broken!")); BI = BB->begin(); // Rescan basic block. BI might be invalidated. ++NumExprTreesConv; return true; |