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
This commit is contained in:
Chris Lattner
2003-10-05 21:20:13 +00:00
parent 5b15deedc0
commit 43f820d1f7
5 changed files with 17 additions and 6 deletions

View File

@ -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