diff options
| author | Dan Gohman <gohman@apple.com> | 2008-06-19 17:18:39 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-06-19 17:18:39 +0000 |
| commit | 68f539e807e4839ca634b93aa2d9a7af7505f10e (patch) | |
| tree | 4a14acc8eb2647b7acf851c2642702d90d643f42 /llvm/lib/Transforms/Utils/DemoteRegToStack.cpp | |
| parent | eb31adeba48bd4611c2a50f7a6b0bc022214fbb9 (diff) | |
| download | bcm5719-llvm-68f539e807e4839ca634b93aa2d9a7af7505f10e.tar.gz bcm5719-llvm-68f539e807e4839ca634b93aa2d9a7af7505f10e.zip | |
Delete dead code.
llvm-svn: 52494
Diffstat (limited to 'llvm/lib/Transforms/Utils/DemoteRegToStack.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/DemoteRegToStack.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp b/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp index bbe804fc551..c123c0301f7 100644 --- a/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp +++ b/llvm/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); |

