Lines Matching refs:StoreInst
213 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupPointerRootUsers()
320 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupConstantGlobalUsers()
373 if (isa<StoreInst>(V) && U->getOperandNo() == 0) in collectSRATypes()
406 auto *SI = dyn_cast<StoreInst>(V); in collectSRATypes()
628 auto *SI = cast<StoreInst>(V); in SRAGlobal()
663 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in AllUsesOfValueWillTrapIfNull()
716 } else if (auto *SI = dyn_cast<StoreInst>(U)) { in allUsesOfLoadedValueWillTrapIfNull()
748 assert((isa<LoadInst>(U) || isa<StoreInst>(U)) && in allUsesOfLoadAndStores()
766 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
845 } else if (isa<StoreInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
957 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in OptimizeGlobalAddressOfAllocation()
960 new StoreInst(ConstantInt::getBool( in OptimizeGlobalAddressOfAllocation()
1009 cast<StoreInst>(InitBool->user_back())->eraseFromParent(); in OptimizeGlobalAddressOfAllocation()
1046 if (auto *SI = dyn_cast<StoreInst>(U)) { in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
1173 if (!isa<LoadInst>(U) && !isa<StoreInst>(U)) in TryToShrinkGlobalToBoolean()
1252 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in TryToShrinkGlobalToBoolean()
1283 StoreInst *NSI = in TryToShrinkGlobalToBoolean()
1284 new StoreInst(StoreVal, NewGV, false, Align(1), SI->getOrdering(), in TryToShrinkGlobalToBoolean()
1361 SmallVector<StoreInst *, 4> Stores; in isPointerValueDeadOnEntryToFunction()
1370 else if (auto *SI = dyn_cast<StoreInst>(I)) in isPointerValueDeadOnEntryToFunction()
1397 if (none_of(Stores, [&](const StoreInst *S) { in isPointerValueDeadOnEntryToFunction()
1416 GlobalVariable *GV, const StoreInst *StoredOnceStore, in forwardStoredOnceStore()
1482 new StoreInst(GV->getInitializer(), Alloca, FirstI); in processInternalGlobal()