From 43f820d1f7638656be2158efac7dd8f5b08b8b77 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 5 Oct 2003 21:20:13 +0000 Subject: 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 --- include/llvm/Transforms/Utils/PromoteMemToReg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h index 436fa43a31..a72d7b4e7c 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 @@ -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 &Allocas, - DominanceFrontier &DF, const TargetData &TD); + DominatorTree &DT, DominanceFrontier &DF, + const TargetData &TD); #endif -- cgit v1.2.3