ΒΆbool isAllocaPromotable(
const llvm::AllocaInst* AI)
bool isAllocaPromotable(
const llvm::AllocaInst* AI)
Description
Return true if this alloca is legal for promotion. This is true if there are only loads, stores, and lifetime markers (transitively) using this alloca. This also enforces that there is only ever one layer of bitcasts or GEPs between the alloca and the lifetime markers.
Declared at: llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:31
Parameters
- const llvm::AllocaInst* AI