Lines Matching defs:MSI
180 void addMemSet(int64_t OffsetFromFirst, MemSetInst *MSI) {
181 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue();
182 addRange(OffsetFromFirst, Size, MSI->getDest(), MSI->getDestAlignment(), MSI);
346 MemSetInst *MSI = cast<MemSetInst>(BI);
348 if (MSI->isVolatile() || ByteVal != MSI->getValue() ||
349 !isa<ConstantInt>(MSI->getLength()))
353 Optional<int64_t> Offset = isPointerOffset(StartPtr, MSI->getDest(), DL);
357 Ranges.addMemSet(*Offset, MSI);
699 bool MemCpyOptPass::processMemSet(MemSetInst *MSI, BasicBlock::iterator &BBI) {
702 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
703 if (Instruction *I = tryMergingIntoMemset(MSI, MSI->getDest(),
704 MSI->getValue())) {