Lines Matching defs:AI
175 AllocaInst *AI = IFI.StaticAllocas[AllocaNo];
180 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType());
181 if (!ATy || AI->isArrayAllocation())
194 Align Align1 = AI->getAlign();
199 if (AvailableAlloca->getParent() != AI->getParent())
207 // Otherwise, we *can* reuse it, RAUW AI into AvailableAlloca and declare
209 LLVM_DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI
214 if (auto *L = LocalAsMetadata::getIfExists(AI))
215 if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L))
220 AI->replaceAllUsesWith(AvailableAlloca);
223 AvailableAlloca->setAlignment(AI->getAlign());
225 AI->eraseFromParent();
241 AllocasForType.push_back(AI);
242 UsedAllocas.insert(AI);