Adding ability to demote phi to stack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39744 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tanya Lattner
2007-07-11 18:41:34 +00:00
parent 5d9c4b6020
commit 08d14d2469
2 changed files with 43 additions and 0 deletions

View File

@@ -80,6 +80,11 @@ bool SimplifyCFG(BasicBlock *BB);
///
AllocaInst *DemoteRegToStack(Instruction &X, bool VolatileLoads = false);
/// DemotePHIToStack - This function takes a virtual register computed by a phi
/// node and replaces it with a slot in the stack frame, allocated via alloca.
/// The phi node is deleted and it returns the pointer to the alloca inserted.
AllocaInst *DemotePHIToStack(PHINode *P);
} // End llvm namespace
#endif