15 #ifndef LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H 16 #define LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H 20 template <
typename T>
class ArrayRef;
23 class AliasSetTracker;
24 class AssumptionCache;
42 AssumptionCache *AC =
nullptr);
This class represents lattice values for constants.
bool isAllocaPromotable(const AllocaInst *AI)
Return true if this alloca is legal for promotion.
void PromoteMemToReg(ArrayRef< AllocaInst *> Allocas, DominatorTree &DT, AssumptionCache *AC=nullptr)
Promote the specified list of alloca instructions into scalar registers, inserting PHI nodes as appro...