diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-05 21:20:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-05 21:20:13 +0000 |
commit | 43f820d1f7638656be2158efac7dd8f5b08b8b77 (patch) | |
tree | 0c76a6800c38ea268a5d0e75a88f3ddea34ea9ed /include/llvm/Transforms/Utils/PromoteMemToReg.h | |
parent | 5b15deedc01babcf40d74e0c9e48efead6a888e2 (diff) | |
download | external_llvm-43f820d1f7638656be2158efac7dd8f5b08b8b77.zip external_llvm-43f820d1f7638656be2158efac7dd8f5b08b8b77.tar.gz external_llvm-43f820d1f7638656be2158efac7dd8f5b08b8b77.tar.bz2 |
Change the interface to PromoteMemToReg to also take a DominatorTree
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/PromoteMemToReg.h')
-rw-r--r-- | include/llvm/Transforms/Utils/PromoteMemToReg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h index 436fa43..a72d7b4 100644 --- a/include/llvm/Transforms/Utils/PromoteMemToReg.h +++ b/include/llvm/Transforms/Utils/PromoteMemToReg.h @@ -9,6 +9,7 @@ #define TRANSFORMS_UTILS_PROMOTEMEMTOREG_H class AllocaInst; +class DominatorTree; class DominanceFrontier; class TargetData; #include <vector> @@ -24,6 +25,7 @@ bool isAllocaPromotable(const AllocaInst *AI, const TargetData &TD); /// of the function at all. All allocas must be from the same function. /// void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas, - DominanceFrontier &DF, const TargetData &TD); + DominatorTree &DT, DominanceFrontier &DF, + const TargetData &TD); #endif |