Lines Matching refs:S1
115 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
118 bool canSinkStoresAndGEPs(StoreInst *S0, StoreInst *S1) const;
212 StoreInst *S1) { in getPHIOperand() argument
215 Value *Opd2 = S1->getValueOperand(); in getPHIOperand()
221 NewPN->applyMergedLocation(S0->getDebugLoc(), S1->getDebugLoc()); in getPHIOperand()
223 NewPN->addIncoming(Opd2, S1->getParent()); in getPHIOperand()
231 StoreInst *S1) const { in canSinkStoresAndGEPs()
232 if (S0->getPointerOperand() == S1->getPointerOperand()) in canSinkStoresAndGEPs()
235 auto *GEP1 = dyn_cast<GetElementPtrInst>(S1->getPointerOperand()); in canSinkStoresAndGEPs()
238 (GEP1->getParent() == S1->getParent()); in canSinkStoresAndGEPs()
247 StoreInst *S1) { in sinkStoresAndGEPs() argument
249 Value *Ptr1 = S1->getPointerOperand(); in sinkStoresAndGEPs()
253 dbgs() << "Instruction Right\n"; S1->dump(); dbgs() << "\n"); in sinkStoresAndGEPs()
257 S0->andIRFlags(S1); in sinkStoresAndGEPs()
259 S0->applyMergedLocation(S0->getDebugLoc(), S1->getDebugLoc()); in sinkStoresAndGEPs()
260 S0->mergeDIAssignID(S1); in sinkStoresAndGEPs()
266 S1->getValueOperand()->getType()); in sinkStoresAndGEPs()
273 if (PHINode *NewPN = getPHIOperand(BB, S0, S1)) in sinkStoresAndGEPs()
276 S1->eraseFromParent(); in sinkStoresAndGEPs()
336 if (StoreInst *S1 = canSinkFromBlock(Pred1, S0)) { in mergeStores() local
337 if (!canSinkStoresAndGEPs(S0, S1)) in mergeStores()
353 sinkStoresAndGEPs(SinkBB, S0, S1); in mergeStores()