mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user