Lines Matching defs:OtherStore
1475 auto OtherStoreIsMergeable = [&](StoreInst *OtherStore) -> bool {
1476 if (!OtherStore ||
1477 OtherStore->getPointerOperand() != SI.getPointerOperand())
1481 auto *OSVTy = OtherStore->getValueOperand()->getType();
1483 SI.hasSameSpecialState(OtherStore);
1488 StoreInst *OtherStore = nullptr;
1499 OtherStore = dyn_cast<StoreInst>(BBI);
1500 if (!OtherStoreIsMergeable(OtherStore))
1514 OtherStore = dyn_cast<StoreInst>(BBI);
1515 if (OtherStoreIsMergeable(OtherStore))
1535 Value *MergedVal = OtherStore->getValueOperand();
1538 OtherStore->getDebugLoc());
1543 Builder.SetInsertPoint(OtherStore);
1557 NewSI->mergeDIAssignID({&SI, OtherStore});
1562 NewSI->setAAMetadata(AATags.merge(OtherStore->getAAMetadata()));
1566 eraseInstFromFunction(*OtherStore);