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 | 3224cda25e7af1b8644df476e915fb6d3fc7fb15 (patch) | |
| tree | 58bf1f48930d8b5aedb3f92bbdad4aaf37da5ef6 /include/llvm/Transforms | |
| parent | 7501f1029724d4f397f48862785b7c7fc2970a03 (diff) | |
| download | external_llvm-3224cda25e7af1b8644df476e915fb6d3fc7fb15.zip external_llvm-3224cda25e7af1b8644df476e915fb6d3fc7fb15.tar.gz external_llvm-3224cda25e7af1b8644df476e915fb6d3fc7fb15.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/Transforms')
| -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 |
