aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-19 17:18:39 +0000
committerDan Gohman <gohman@apple.com>2008-06-19 17:18:39 +0000
commit5df079389d99b6c186c7bb98147fdf057cb4dbdc (patch)
tree40ab1f2e37fef6588a1dc155c4791bd920677eda /lib/Transforms/Utils
parent42cdbe28524fd792dabd6d55ec95d975f417ca88 (diff)
downloadexternal_llvm-5df079389d99b6c186c7bb98147fdf057cb4dbdc.zip
external_llvm-5df079389d99b6c186c7bb98147fdf057cb4dbdc.tar.gz
external_llvm-5df079389d99b6c186c7bb98147fdf057cb4dbdc.tar.bz2
Delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/DemoteRegToStack.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Transforms/Utils/DemoteRegToStack.cpp b/lib/Transforms/Utils/DemoteRegToStack.cpp
index bbe804f..c123c03 100644
--- a/lib/Transforms/Utils/DemoteRegToStack.cpp
+++ b/lib/Transforms/Utils/DemoteRegToStack.cpp
@@ -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);