Lines Matching defs:SI
213 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
214 Value *V = SI->getValueOperand();
217 SI->eraseFromParent();
220 Dead.push_back(std::make_pair(I, SI));
320 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
322 EraseFromParent(SI);
406 auto *SI = dyn_cast<StoreInst>(V);
407 if (!SI)
410 Constant *StoredConst = dyn_cast<Constant>(SI->getOperand(0));
628 auto *SI = cast<StoreInst>(V);
629 SI->setOperand(1, NGV);
630 SI->setAlignment(NewAlign);
663 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) {
664 if (SI->getOperand(0) == V) {
716 } else if (auto *SI = dyn_cast<StoreInst>(U)) {
718 if (SI->getPointerOperand() != P)
766 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
767 if (SI->getOperand(1) == V) {
768 SI->setOperand(1, NewV);
957 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
962 !isa<ConstantPointerNull>(SI->getValueOperand())),
963 InitBool, false, Align(1), SI->getOrdering(),
964 SI->getSyncScopeID(), SI->getIterator());
965 SI->eraseFromParent();
1046 if (auto *SI = dyn_cast<StoreInst>(U)) {
1047 if (SI->getValueOperand() == V &&
1048 SI->getPointerOperand()->stripPointerCasts() != GV)
1252 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) {
1254 bool StoringOther = SI->getOperand(0) == OtherVal;
1257 if (StoringOther || SI->getOperand(0) == InitVal) {
1264 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0));
1284 new StoreInst(StoreVal, NewGV, false, Align(1), SI->getOrdering(),
1285 SI->getSyncScopeID(), SI->getIterator());
1286 NSI->setDebugLoc(SI->getDebugLoc());
1370 else if (auto *SI = dyn_cast<StoreInst>(I))
1371 Stores.push_back(SI);