ΒΆvoid PromoteMemToReg(
ArrayRef<llvm::AllocaInst*> Allocas,
llvm::DominatorTree& DT,
llvm::AssumptionCache* AC = nullptr)
void PromoteMemToReg(
ArrayRef<llvm::AllocaInst*> Allocas,
llvm::DominatorTree& DT,
llvm::AssumptionCache* AC = nullptr)
Description
Promote the specified list of alloca instructions into scalar registers, inserting PHI nodes as appropriate. This function makes use of DominanceFrontier information. This function does not modify the CFG of the function at all. All allocas must be from the same function.
Declared at: llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:40
Parameters
- ArrayRef<llvm::AllocaInst*> Allocas
- llvm::DominatorTree& DT
- llvm::AssumptionCache* AC = nullptr