Home | History | Annotate | Download | only in Scalar

Lines Matching defs:MSI

218   void addMemSet(int64_t OffsetFromFirst, MemSetInst *MSI) {
219 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue();
220 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, *TD))
412 Ranges.addMemSet(Offset, MSI);
544 bool MemCpyOpt::processMemSet(MemSetInst *MSI, BasicBlock::iterator &BBI) {
547 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
548 if (Instruction *I = tryMergingIntoMemset(MSI, MSI->getDest(),
549 MSI->getValue())) {