Lines Matching defs:AI
193 AllocaInst *AI = IFI.StaticAllocas[AllocaNo];
198 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType());
199 if (!ATy || AI->isArrayAllocation())
213 unsigned Align1 = AI->getAlignment(),
218 if (AvailableAlloca->getParent() != AI->getParent())
226 // Otherwise, we *can* reuse it, RAUW AI into AvailableAlloca and declare
228 DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI << "\n\t\tINTO: "
233 if (auto *L = LocalAsMetadata::getIfExists(AI))
234 if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L))
239 AI->replaceAllUsesWith(AvailableAlloca);
244 unsigned TypeAlign = DL.getABITypeAlignment(AI->getAllocatedType());
251 AvailableAlloca->setAlignment(AI->getAlignment());
254 AI->eraseFromParent();
270 AllocasForType.push_back(AI);
271 UsedAllocas.insert(AI);