[llvm-commits] [llvm] r52494 - /llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp
Dan Gohman
gohman at apple.com
Thu Jun 19 10:18:39 PDT 2008
Author: djg
Date: Thu Jun 19 12:18:39 2008
New Revision: 52494
URL: http://llvm.org/viewvc/llvm-project?rev=52494&view=rev
Log:
Delete dead code.
Modified:
llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp
Modified: llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp?rev=52494&r1=52493&r2=52494&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp Thu Jun 19 12:18:39 2008
@@ -134,10 +134,6 @@
}
// 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);
More information about the llvm-commits
mailing list