mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00:00
Delete dead code.
llvm-svn: 52494
This commit is contained in:
parent
5eeafbc3f7
commit
68c5bdd4f5
@ -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…
x
Reference in New Issue
Block a user