aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Dominators.cpp
diff options
context:
space:
mode:
authorSteven Wu <stevenwu@apple.com>2015-08-28 06:52:00 +0000
committerSteven Wu <stevenwu@apple.com>2015-08-28 06:52:00 +0000
commit61db34d12ec98eb20f7177c91d3dbfa89c14b3e7 (patch)
tree68d758e79d9925993a169e6967b670fefa118987 /llvm/lib/IR/Dominators.cpp
parent117fb35cf7348c04f824a1f971cdb8ac78ab370c (diff)
downloadllvm-61db34d12ec98eb20f7177c91d3dbfa89c14b3e7.zip
llvm-61db34d12ec98eb20f7177c91d3dbfa89c14b3e7.tar.gz
llvm-61db34d12ec98eb20f7177c91d3dbfa89c14b3e7.tar.bz2
Revert r246244 and r246243
These two commits cause clang/llvm bootstrap to hang. llvm-svn: 246279
Diffstat (limited to 'llvm/lib/IR/Dominators.cpp')
-rw-r--r--llvm/lib/IR/Dominators.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/Dominators.cpp b/llvm/lib/IR/Dominators.cpp
index d94e31d4..775bd92 100644
--- a/llvm/lib/IR/Dominators.cpp
+++ b/llvm/lib/IR/Dominators.cpp
@@ -147,8 +147,7 @@ bool DominatorTree::dominates(const BasicBlockEdge &BBE,
// Assert that we have a single edge. We could handle them by simply
// returning false, but since isSingleEdge is linear on the number of
// edges, the callers can normally handle them more efficiently.
- assert(BBE.isSingleEdge() &&
- "This function is not efficient in handling multiple edges");
+ assert(BBE.isSingleEdge());
// If the BB the edge ends in doesn't dominate the use BB, then the
// edge also doesn't.
@@ -198,8 +197,7 @@ bool DominatorTree::dominates(const BasicBlockEdge &BBE, const Use &U) const {
// Assert that we have a single edge. We could handle them by simply
// returning false, but since isSingleEdge is linear on the number of
// edges, the callers can normally handle them more efficiently.
- assert(BBE.isSingleEdge() &&
- "This function is not efficient in handling multiple edges");
+ assert(BBE.isSingleEdge());
Instruction *UserInst = cast<Instruction>(U.getUser());
// A PHI in the end of the edge is dominated by it.