Home | History | Annotate | Download | only in Scalar

Lines Matching defs:MSI

264   void addMemSet(int64_t OffsetFromFirst, MemSetInst *MSI) {
265 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue();
266 addRange(OffsetFromFirst, Size, MSI->getDest(), MSI->getDestAlignment(), MSI);
427 MemSetInst *MSI = cast<MemSetInst>(BI);
429 if (MSI->isVolatile() || ByteVal != MSI->getValue() ||
430 !isa<ConstantInt>(MSI->getLength()))
435 if (!IsPointerOffset(StartPtr, MSI->getDest(), Offset, DL))
438 Ranges.addMemSet(Offset, MSI);
788 bool MemCpyOptPass::processMemSet(MemSetInst *MSI, BasicBlock::iterator &BBI) {
791 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
792 if (Instruction *I = tryMergingIntoMemset(MSI, MSI->getDest(),
793 MSI->getValue())) {