projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5678d6e
)
Delete dead code.
author
Dan Gohman
<gohman@apple.com>
Thu, 19 Jun 2008 17:18:39 +0000
(17:18 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/DemoteRegToStack.cpp
b/lib/Transforms/Utils/DemoteRegToStack.cpp
index bbe804fc5518d9d089bbefa24b703d4c95c7d065..c123c0301f7da29a3e5bca68ec2ecb5be7a3dcb4 100644
(file)
--- 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);