Lines Matching refs:MSI
229 void addMemSet(int64_t OffsetFromFirst, MemSetInst *MSI) {
230 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue();
231 addRange(OffsetFromFirst, Size, MSI->getDest(), MSI->getAlignment(), MSI);
412 MemSetInst *MSI = cast<MemSetInst>(BI);
414 if (MSI->isVolatile() || ByteVal != MSI->getValue() ||
415 !isa<ConstantInt>(MSI->getLength()))
420 if (!IsPointerOffset(StartPtr, MSI->getDest(), Offset, *DL))
423 Ranges.addMemSet(Offset, MSI);
563 bool MemCpyOpt::processMemSet(MemSetInst *MSI, BasicBlock::iterator &BBI) {
566 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
567 if (Instruction *I = tryMergingIntoMemset(MSI, MSI->getDest(),
568 MSI->getValue())) {