Lines Matching defs:MSI
188 void addMemSet(int64_t OffsetFromFirst, MemSetInst *MSI) {
189 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue();
190 addRange(OffsetFromFirst, Size, MSI->getDest(), MSI->getDestAlign(), MSI);
423 auto *MSI = cast<MemSetInst>(BI);
425 if (MSI->isVolatile() || ByteVal != MSI->getValue() ||
426 !isa<ConstantInt>(MSI->getLength()))
431 MSI->getDest()->getPointerOffsetFrom(StartPtr, DL);
435 Ranges.addMemSet(*Offset, MSI);
822 bool MemCpyOptPass::processMemSet(MemSetInst *MSI, BasicBlock::iterator &BBI) {
825 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
827 tryMergingIntoMemset(MSI, MSI->getDest(), MSI->getValue())) {