diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-06-29 16:22:11 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-06-29 16:22:11 +0000 |
commit | ce77aa3edc0d07c8a2b9a613d9b57457dee43425 (patch) | |
tree | 091dace11e8b12336c54306f4e105a4fe6bb5ba6 /lib/VMCore | |
parent | 254cf03a45534ccfdcc7d223fbebc07d4a0562a7 (diff) | |
download | external_llvm-ce77aa3edc0d07c8a2b9a613d9b57457dee43425.zip external_llvm-ce77aa3edc0d07c8a2b9a613d9b57457dee43425.tar.gz external_llvm-ce77aa3edc0d07c8a2b9a613d9b57457dee43425.tar.bz2 |
Temporarily revert r134057: "Let simplify cfg simplify bb with only debug and
lifetime intrinsics" due to buildbot failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index 70265c8..7d47044 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -147,26 +147,6 @@ Instruction* BasicBlock::getFirstNonPHIOrDbg() { return &*i; } -Instruction* BasicBlock::getFirstNonPHIOrDbgOrLifetime() { - // All valid basic blocks should have a terminator, - // which is not a PHINode. If we have an invalid basic - // block we'll get an assertion failure when dereferencing - // a past-the-end iterator. - BasicBlock::iterator i = begin(); - for (;; ++i) { - if (isa<PHINode>(i) || isa<DbgInfoIntrinsic>(i)) - continue; - - const IntrinsicInst *II = dyn_cast<IntrinsicInst>(i); - if (!II) - break; - if (II->getIntrinsicID() != Intrinsic::lifetime_start && - II->getIntrinsicID() != Intrinsic::lifetime_end) - break; - } - return &*i; -} - void BasicBlock::dropAllReferences() { for(iterator I = begin(), E = end(); I != E; ++I) I->dropAllReferences(); |