diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-10-21 23:05:16 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-10-21 23:05:16 +0000 |
commit | a024e8cedab928403818ac79e899cdae2a356c56 (patch) | |
tree | 58bf1f48930d8b5aedb3f92bbdad4aaf37da5ef6 /include/llvm | |
parent | c6185038b88588929a8d69309abe8bebadad345d (diff) | |
download | external_llvm-a024e8cedab928403818ac79e899cdae2a356c56.zip external_llvm-a024e8cedab928403818ac79e899cdae2a356c56.tar.gz external_llvm-a024e8cedab928403818ac79e899cdae2a356c56.tar.bz2 |
Reg2Mem cleanup and optimizations:
- enable phi instructions demotion to stack
- create alloca instructions in the entry block
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Transforms/Utils/Local.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index c2b95db..2b2ca56 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/include/llvm/Transforms/Utils/Local.h @@ -78,12 +78,13 @@ bool SimplifyCFG(BasicBlock *BB); /// invalidating the SSA information for the value. It returns the pointer to /// the alloca inserted to create a stack slot for X. /// -AllocaInst *DemoteRegToStack(Instruction &X, bool VolatileLoads = false); +AllocaInst *DemoteRegToStack(Instruction &X, bool VolatileLoads = false, + Instruction *AllocaPoint = NULL); /// 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); +AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = NULL); } // End llvm namespace |