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 | 96ed721d9bcec1a80370feec3a77e3313d7df047 (patch) | |
tree | 3de54358b1933b043ad85982ae882e4b5bd0e171 /llvm/lib/VMCore/BasicBlock.cpp | |
parent | 1957a2feb5c26f865173cb166f6344ca195cd151 (diff) | |
download | bcm5719-llvm-96ed721d9bcec1a80370feec3a77e3313d7df047.tar.gz bcm5719-llvm-96ed721d9bcec1a80370feec3a77e3313d7df047.zip |
Temporarily revert r134057: "Let simplify cfg simplify bb with only debug and
lifetime intrinsics" due to buildbot failures.
llvm-svn: 134071
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index 70265c899d7..7d470440aff 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/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(); |