Home | History | Annotate | Download | only in Scalar

Lines Matching refs:MSI

224   void addMemSet(int64_t OffsetFromFirst, MemSetInst *MSI) {
225 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue();
226 addRange(OffsetFromFirst, Size, MSI->getDest(), MSI->getAlignment(), MSI);
401 MemSetInst *MSI = cast<MemSetInst>(BI);
403 if (MSI->isVolatile() || ByteVal != MSI->getValue() ||
404 !isa<ConstantInt>(MSI->getLength()))
409 if (!IsPointerOffset(StartPtr, MSI->getDest(), Offset, DL))
412 Ranges.addMemSet(Offset, MSI);
748 bool MemCpyOptPass::processMemSet(MemSetInst *MSI, BasicBlock::iterator &BBI) {
751 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
752 if (Instruction *I = tryMergingIntoMemset(MSI, MSI->getDest(),
753 MSI->getValue())) {