Lines Matching refs:StoreInst

212     if (StoreInst *SI = dyn_cast<StoreInst>(U)) {  in CleanupPointerRootUsers()
324 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupConstantGlobalUsers()
365 if (isa<StoreInst>(V) && U->getOperandNo() == 0) in collectSRATypes()
573 auto *SI = cast<StoreInst>(V); in SRAGlobal()
608 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in AllUsesOfValueWillTrapIfNull()
660 } else if (auto *SI = dyn_cast<StoreInst>(U)) { in allUsesOfLoadedValueWillTrapIfNull()
692 assert((isa<LoadInst>(U) || isa<StoreInst>(U)) && in allUsesOfLoadAndStores()
710 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
790 } else if (isa<StoreInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
919 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in OptimizeGlobalAddressOfAllocation()
922 new StoreInst(ConstantInt::getBool( in OptimizeGlobalAddressOfAllocation()
972 cast<StoreInst>(InitBool->user_back())->eraseFromParent(); in OptimizeGlobalAddressOfAllocation()
1010 if (auto *SI = dyn_cast<StoreInst>(U)) { in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
1140 if (!isa<LoadInst>(U) && !isa<StoreInst>(U)) in TryToShrinkGlobalToBoolean()
1219 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in TryToShrinkGlobalToBoolean()
1249 StoreInst *NSI = in TryToShrinkGlobalToBoolean()
1250 new StoreInst(StoreVal, NewGV, false, Align(1), SI->getOrdering(), in TryToShrinkGlobalToBoolean()
1327 SmallVector<StoreInst *, 4> Stores; in isPointerValueDeadOnEntryToFunction()
1333 else if (auto *SI = dyn_cast<StoreInst>(UU)) in isPointerValueDeadOnEntryToFunction()
1348 else if (auto *SI = dyn_cast<StoreInst>(I)) in isPointerValueDeadOnEntryToFunction()
1375 if (none_of(Stores, [&](const StoreInst *S) { in isPointerValueDeadOnEntryToFunction()
1450 GlobalVariable *GV, const StoreInst *StoredOnceStore, in forwardStoredOnceStore()
1517 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in processInternalGlobal()