mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +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:
@ -134,10 +134,6 @@ AllocaInst* llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Insert load in place of the phi and replace all uses.
|
// 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);
|
Value *V = new LoadInst(Slot, P->getName()+".reload", P);
|
||||||
P->replaceAllUsesWith(V);
|
P->replaceAllUsesWith(V);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user