Lines Matching defs:OtherStore
1515 auto OtherStoreIsMergeable = [&](StoreInst *OtherStore) -> bool {
1516 if (!OtherStore ||
1517 OtherStore->getPointerOperand() != SI.getPointerOperand())
1521 auto *OSVTy = OtherStore->getValueOperand()->getType();
1523 SI.hasSameSpecialState(OtherStore);
1528 StoreInst *OtherStore = nullptr;
1539 OtherStore = dyn_cast<StoreInst>(BBI);
1540 if (!OtherStoreIsMergeable(OtherStore))
1554 OtherStore = dyn_cast<StoreInst>(BBI);
1555 if (OtherStoreIsMergeable(OtherStore))
1575 Value *MergedVal = OtherStore->getValueOperand();
1578 OtherStore->getDebugLoc());
1583 Builder.SetInsertPoint(OtherStore);
1597 NewSI->mergeDIAssignID({&SI, OtherStore});
1602 NewSI->setAAMetadata(AATags.merge(OtherStore->getAAMetadata()));
1606 eraseInstFromFunction(*OtherStore);