Lines Matching refs:StoreInst
114 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
115 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
118 bool canSinkStoresAndGEPs(StoreInst *S0, StoreInst *S1) const;
119 void sinkStoresAndGEPs(BasicBlock *BB, StoreInst *SinkCand,
120 StoreInst *ElseInst);
183 StoreInst *MergedLoadStoreMotion::canSinkFromBlock(BasicBlock *BB1, in canSinkFromBlock()
184 StoreInst *Store0) { in canSinkFromBlock()
188 auto *Store1 = dyn_cast<StoreInst>(&Inst); in canSinkFromBlock()
211 PHINode *MergedLoadStoreMotion::getPHIOperand(BasicBlock *BB, StoreInst *S0, in getPHIOperand()
212 StoreInst *S1) { in getPHIOperand()
230 bool MergedLoadStoreMotion::canSinkStoresAndGEPs(StoreInst *S0, in canSinkStoresAndGEPs()
231 StoreInst *S1) const { in canSinkStoresAndGEPs()
246 void MergedLoadStoreMotion::sinkStoresAndGEPs(BasicBlock *BB, StoreInst *S0, in sinkStoresAndGEPs()
247 StoreInst *S1) { in sinkStoresAndGEPs()
270 StoreInst *SNew = cast<StoreInst>(S0->clone()); in sinkStoresAndGEPs()
329 auto *S0 = dyn_cast<StoreInst>(I); in mergeStores()
336 if (StoreInst *S1 = canSinkFromBlock(Pred1, S0)) { in mergeStores()