mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 11:38:35 +00:00
Delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5678d6e8d3
commit
f3dc70092c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user