Lines Matching refs:LoadInst
165 if (isa<LoadInst>(V) || isa<InvokeInst>(V) || isa<Argument>(V) || in IsSafeComputationToRemove()
293 else if (auto *LI = dyn_cast<LoadInst>(U)) { in CleanupConstantGlobalUsers()
408 It->second.IsLoaded |= isa<LoadInst>(V); in collectSRATypes()
614 if (auto *LI = dyn_cast<LoadInst>(V)) { in SRAGlobal()
651 if (isa<LoadInst>(U)) { in AllUsesOfValueWillTrapIfNull()
677 isa<LoadInst>(U->getOperand(0)) && in AllUsesOfValueWillTrapIfNull()
679 assert(isa<GlobalValue>(cast<LoadInst>(U->getOperand(0)) in AllUsesOfValueWillTrapIfNull()
702 if (auto *LI = dyn_cast<LoadInst>(U)) { in allUsesOfLoadedValueWillTrapIfNull()
738 assert((isa<LoadInst>(U) || isa<StoreInst>(U)) && in allUsesOfLoadAndStores()
753 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
826 if (LoadInst *LI = dyn_cast<LoadInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
959 LoadInst *LI = cast<LoadInst>(U); in OptimizeGlobalAddressOfAllocation()
969 Value *LV = new LoadInst(InitBool->getValueType(), InitBool, in OptimizeGlobalAddressOfAllocation()
1032 if (isa<LoadInst>(U) || isa<CmpInst>(U)) in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
1162 if (!isa<LoadInst>(U) && !isa<StoreInst>(U)) in TryToShrinkGlobalToBoolean()
1258 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean()
1261 StoreVal = new LoadInst(NewGV->getValueType(), NewGV, in TryToShrinkGlobalToBoolean()
1268 assert(isa<LoadInst>(StoreVal) && "Not a load of NewGV!"); in TryToShrinkGlobalToBoolean()
1277 LoadInst *LI = cast<LoadInst>(UI); in TryToShrinkGlobalToBoolean()
1278 LoadInst *NLI = new LoadInst(NewGV->getValueType(), NewGV, in TryToShrinkGlobalToBoolean()
1348 SmallVector<LoadInst *, 4> Loads; in isPointerValueDeadOnEntryToFunction()
1356 if (auto *LI = dyn_cast<LoadInst>(I)) in isPointerValueDeadOnEntryToFunction()
1413 SmallVector<LoadInst *> Loads; in forwardStoredOnceStore()
1415 if (auto *LI = dyn_cast<LoadInst>(U)) { in forwardStoredOnceStore()