[llvm-commits] [llvm] r85668 - /llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp

Dan Gohman gohman at apple.com
Sat Oct 31 09:16:42 PDT 2009


Author: djg
Date: Sat Oct 31 11:16:41 2009
New Revision: 85668

URL: http://llvm.org/viewvc/llvm-project?rev=85668&view=rev
Log:
Remove redundant code.

Modified:
    llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp

Modified: llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp?rev=85668&r1=85667&r2=85668&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp Sat Oct 31 11:16:41 2009
@@ -65,9 +65,6 @@
 /// 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<PHINode>(BB->begin()))
-    return;
-  
   while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) {
     if (PN->getIncomingValue(0) != PN)
       PN->replaceAllUsesWith(PN->getIncomingValue(0));





More information about the llvm-commits mailing list