Lines Matching refs:StoreInst

214     if (StoreInst *SI = dyn_cast<StoreInst>(U)) {  in CleanupPointerRootUsers()
306 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupConstantGlobalUsers()
420 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isSafeSROAElementUse()
641 if (auto *Store = dyn_cast<StoreInst>(U)) { in SRAGlobal()
678 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in AllUsesOfValueWillTrapIfNull()
729 } else if (isa<StoreInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull()
750 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
831 } else if (isa<StoreInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
952 if (StoreInst *SI = dyn_cast<StoreInst>(GV->user_back())) { in OptimizeGlobalAddressOfMalloc()
955 new StoreInst(ConstantInt::getBool( in OptimizeGlobalAddressOfMalloc()
1003 cast<StoreInst>(InitBool->user_back())->eraseFromParent(); in OptimizeGlobalAddressOfMalloc()
1035 if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
1157 if (!isa<LoadInst>(U) && !isa<StoreInst>(U)) in TryToShrinkGlobalToBoolean()
1233 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in TryToShrinkGlobalToBoolean()
1263 StoreInst *NSI = in TryToShrinkGlobalToBoolean()
1264 new StoreInst(StoreVal, NewGV, false, Align(1), SI->getOrdering(), in TryToShrinkGlobalToBoolean()
1335 SmallVector<StoreInst *, 4> Stores; in isPointerValueDeadOnEntryToFunction()
1341 else if (auto *SI = dyn_cast<StoreInst>(UU)) in isPointerValueDeadOnEntryToFunction()
1356 else if (auto *SI = dyn_cast<StoreInst>(I)) in isPointerValueDeadOnEntryToFunction()
1383 if (none_of(Stores, [&](const StoreInst *S) { in isPointerValueDeadOnEntryToFunction()
1489 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in processInternalGlobal()