From: Dan Gohman Date: Sat, 31 Oct 2009 16:16:41 +0000 (+0000) Subject: Remove redundant code. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dca094100b47c59aeeabd3edc050b1872d713082;p=oota-llvm.git Remove redundant code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85668 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/BasicBlockUtils.cpp b/lib/Transforms/Utils/BasicBlockUtils.cpp index b6f00e24c73..e7f33d30b66 100644 --- a/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -65,9 +65,6 @@ void llvm::DeleteDeadBlock(BasicBlock *BB) { /// when all entries to the PHI nodes in a block are guaranteed equal, such as /// when the block has exactly one predecessor. void llvm::FoldSingleEntryPHINodes(BasicBlock *BB) { - if (!isa(BB->begin())) - return; - while (PHINode *PN = dyn_cast(BB->begin())) { if (PN->getIncomingValue(0) != PN) PN->replaceAllUsesWith(PN->getIncomingValue(0));