14#ifndef LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
15#define LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
40 AssumptionCache *AC =
nullptr);
This is an optimization pass for GlobalISel generic memory operations.
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...
bool isAllocaPromotable(const AllocaInst *AI)
Return true if this alloca is legal for promotion.
ArrayRef(const T &OneElt) -> ArrayRef< T >