diff options
author | Tanya Lattner <tonic@nondot.org> | 2007-07-11 18:41:34 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2007-07-11 18:41:34 +0000 |
commit | 08d14d2469c4f0465f610a204353220ee2ccde9c (patch) | |
tree | 264d73a72ebf66d23345cda2e8130c51d01b7eb5 /include/llvm/Transforms/Utils/Local.h | |
parent | 5d9c4b60204d741c213456e21b87e9af6a3dc627 (diff) |
Adding ability to demote phi to stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/Local.h')
-rw-r--r-- | include/llvm/Transforms/Utils/Local.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index 350f20d8ff..c2b95dbdf7 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/include/llvm/Transforms/Utils/Local.h @@ -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 |