Lines Matching refs:StoreInst

209     if (StoreInst *SI = dyn_cast<StoreInst>(U)) {  in CleanupPointerRootUsers()
297 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupConstantGlobalUsers()
409 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isSafeSROAElementUse()
624 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in AllUsesOfValueWillTrapIfNull()
668 } else if (isa<StoreInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull()
689 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
769 } else if (isa<StoreInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
890 if (StoreInst *SI = dyn_cast<StoreInst>(GV->user_back())) { in OptimizeGlobalAddressOfMalloc()
892 new StoreInst(ConstantInt::getTrue(GV->getContext()), InitBool, false, 0, in OptimizeGlobalAddressOfMalloc()
940 cast<StoreInst>(InitBool->user_back())->eraseFromParent(); in OptimizeGlobalAddressOfMalloc()
972 if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
1014 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in ReplaceUsesOfMallocWithGlobal()
1033 if (StoreInst *SI = dyn_cast<StoreInst>(GEPI->user_back())) in ReplaceUsesOfMallocWithGlobal()
1315 new StoreInst(NMI, NGV, CI); in PerformHeapAllocSRoA()
1372 new StoreInst(Constant::getNullValue(GVVal->getType()), FieldGlobals[i], in PerformHeapAllocSRoA()
1403 StoreInst *SI = cast<StoreInst>(User); in PerformHeapAllocSRoA()
1411 new StoreInst(Null, FieldGlobals[i], SI); in PerformHeapAllocSRoA()
1615 if (!isa<LoadInst>(U) && !isa<StoreInst>(U)) in TryToShrinkGlobalToBoolean()
1684 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in TryToShrinkGlobalToBoolean()
1713 StoreInst *NSI = in TryToShrinkGlobalToBoolean()
1714 new StoreInst(StoreVal, NewGV, false, 0, SI->getOrdering(), in TryToShrinkGlobalToBoolean()
1784 SmallVector<StoreInst *, 4> Stores; in isPointerValueDeadOnEntryToFunction()
1790 else if (auto *SI = dyn_cast<StoreInst>(UU)) in isPointerValueDeadOnEntryToFunction()
1805 else if (auto *SI = dyn_cast<StoreInst>(I)) in isPointerValueDeadOnEntryToFunction()
1832 if (none_of(Stores, [&](const StoreInst *S) { in isPointerValueDeadOnEntryToFunction()
1937 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in processInternalGlobal()