Lines Matching refs:LoadInst
168 if (isa<LoadInst>(V) || isa<InvokeInst>(V) || isa<Argument>(V) || in IsSafeComputationToRemove()
296 else if (auto *LI = dyn_cast<LoadInst>(U)) { in CleanupConstantGlobalUsers()
418 It->second.IsLoaded |= isa<LoadInst>(V); in collectSRATypes()
624 if (auto *LI = dyn_cast<LoadInst>(V)) { in SRAGlobal()
661 if (isa<LoadInst>(U)) { in AllUsesOfValueWillTrapIfNull()
687 isa<LoadInst>(U->getOperand(0)) && in AllUsesOfValueWillTrapIfNull()
689 assert(isa<GlobalValue>(cast<LoadInst>(U->getOperand(0)) in AllUsesOfValueWillTrapIfNull()
712 if (auto *LI = dyn_cast<LoadInst>(U)) { in allUsesOfLoadedValueWillTrapIfNull()
748 assert((isa<LoadInst>(U) || isa<StoreInst>(U)) && in allUsesOfLoadAndStores()
763 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
836 if (LoadInst *LI = dyn_cast<LoadInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
969 LoadInst *LI = cast<LoadInst>(U); in OptimizeGlobalAddressOfAllocation()
979 Value *LV = new LoadInst(InitBool->getValueType(), InitBool, in OptimizeGlobalAddressOfAllocation()
1043 if (isa<LoadInst>(U) || isa<CmpInst>(U)) in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
1173 if (!isa<LoadInst>(U) && !isa<StoreInst>(U)) in TryToShrinkGlobalToBoolean()
1269 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean()
1273 new LoadInst(NewGV->getValueType(), NewGV, LI->getName() + ".b", in TryToShrinkGlobalToBoolean()
1280 assert(isa<LoadInst>(StoreVal) && "Not a load of NewGV!"); in TryToShrinkGlobalToBoolean()
1289 LoadInst *LI = cast<LoadInst>(UI); in TryToShrinkGlobalToBoolean()
1290 LoadInst *NLI = new LoadInst( in TryToShrinkGlobalToBoolean()
1360 SmallVector<LoadInst *, 4> Loads; in isPointerValueDeadOnEntryToFunction()
1368 if (auto *LI = dyn_cast<LoadInst>(I)) in isPointerValueDeadOnEntryToFunction()
1425 SmallVector<LoadInst *> Loads; in forwardStoredOnceStore()
1427 if (auto *LI = dyn_cast<LoadInst>(U)) { in forwardStoredOnceStore()