aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-01 19:21:46 +0000
committerChris Lattner <sabre@nondot.org>2004-04-01 19:21:46 +0000
commit4edf6c043e7a9b9941db7caa3084b99aa18d91ad (patch)
tree951336f7b0e55c401d8875e7d07415f96de58fa4 /lib/Transforms/Utils/LoopSimplify.cpp
parent1869a466dd019bae256bd615e2b9de74d3490554 (diff)
Remove some assertions that are now bogus with the last patch I put in
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r--lib/Transforms/Utils/LoopSimplify.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp
index bf68b8a7b2..f6e13743c7 100644
--- a/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/lib/Transforms/Utils/LoopSimplify.cpp
@@ -604,11 +604,8 @@ void LoopSimplify::UpdateDomInfoForRevectoredPreds(BasicBlock *NewBB,
// If NewBB strictly dominates other blocks, we need to update their idom's
// now. The only block that need adjustment is the NewBBSucc block, whose
// idom should currently be set to PredBlocks[0].
- if (NewBBDominatesNewBBSucc) {
- assert(ID->get(NewBBSucc) == PredBlocks[0] &&
- "Immediate dominator update code broken!");
+ if (NewBBDominatesNewBBSucc)
ID->setImmediateDominator(NewBBSucc, NewBB);
- }
}
// Update DominatorTree information if it is active.
@@ -633,8 +630,6 @@ void LoopSimplify::UpdateDomInfoForRevectoredPreds(BasicBlock *NewBB,
// dominator of NewBBSucc. Update the dominator tree as appropriate.
if (NewBBDominatesNewBBSucc) {
DominatorTree::Node *NewBBSuccNode = DT->getNode(NewBBSucc);
- assert(NewBBSuccNode->getIDom()->getBlock() == PredBlocks[0] &&
- "Immediate tree update code broken!");
DT->changeImmediateDominator(NewBBSuccNode, NewBBNode);
}
}