Lines Matching refs:StoreInst

210     if (StoreInst *SI = dyn_cast<StoreInst>(U)) {  in CleanupPointerRootUsers()
313 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupConstantGlobalUsers()
363 if (isa<StoreInst>(V) && U->getOperandNo() == 0) in collectSRATypes()
396 auto *SI = dyn_cast<StoreInst>(V); in collectSRATypes()
618 auto *SI = cast<StoreInst>(V); in SRAGlobal()
653 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in AllUsesOfValueWillTrapIfNull()
706 } else if (auto *SI = dyn_cast<StoreInst>(U)) { in allUsesOfLoadedValueWillTrapIfNull()
738 assert((isa<LoadInst>(U) || isa<StoreInst>(U)) && in allUsesOfLoadAndStores()
756 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
835 } else if (isa<StoreInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
947 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in OptimizeGlobalAddressOfAllocation()
950 new StoreInst(ConstantInt::getBool( in OptimizeGlobalAddressOfAllocation()
998 cast<StoreInst>(InitBool->user_back())->eraseFromParent(); in OptimizeGlobalAddressOfAllocation()
1035 if (auto *SI = dyn_cast<StoreInst>(U)) { in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
1162 if (!isa<LoadInst>(U) && !isa<StoreInst>(U)) in TryToShrinkGlobalToBoolean()
1241 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in TryToShrinkGlobalToBoolean()
1271 StoreInst *NSI = in TryToShrinkGlobalToBoolean()
1272 new StoreInst(StoreVal, NewGV, false, Align(1), SI->getOrdering(), in TryToShrinkGlobalToBoolean()
1349 SmallVector<StoreInst *, 4> Stores; in isPointerValueDeadOnEntryToFunction()
1358 else if (auto *SI = dyn_cast<StoreInst>(I)) in isPointerValueDeadOnEntryToFunction()
1385 if (none_of(Stores, [&](const StoreInst *S) { in isPointerValueDeadOnEntryToFunction()
1404 GlobalVariable *GV, const StoreInst *StoredOnceStore, in forwardStoredOnceStore()
1470 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in processInternalGlobal()