Delete dead code.
authorDan Gohman <gohman@apple.com>
Thu, 19 Jun 2008 17:18:39 +0000 (17:18 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 19 Jun 2008 17:18:39 +0000 (17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52494 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/DemoteRegToStack.cpp

index bbe804fc5518d9d089bbefa24b703d4c95c7d065..c123c0301f7da29a3e5bca68ec2ecb5be7a3dcb4 100644 (file)
@@ -134,10 +134,6 @@ AllocaInst* llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) {
   }
   
   // Insert load in place of the phi and replace all uses.
-  BasicBlock::iterator InsertPt;
-  for (InsertPt = P->getParent()->getInstList().begin(); 
-       isa<PHINode>(InsertPt); ++InsertPt)
-    ; /*noop */
   Value *V = new LoadInst(Slot, P->getName()+".reload", P);
   P->replaceAllUsesWith(V);