Lines Matching refs:LoadInst

169     if (isa<LoadInst>(V) || isa<InvokeInst>(V) || isa<Argument>(V) ||  in IsSafeComputationToRemove()
304 else if (auto *LI = dyn_cast<LoadInst>(U)) { in CleanupConstantGlobalUsers()
569 if (auto *LI = dyn_cast<LoadInst>(V)) { in SRAGlobal()
606 if (isa<LoadInst>(U)) { in AllUsesOfValueWillTrapIfNull()
631 isa<LoadInst>(U->getOperand(0)) && in AllUsesOfValueWillTrapIfNull()
633 assert(isa<GlobalValue>(cast<LoadInst>(U->getOperand(0)) in AllUsesOfValueWillTrapIfNull()
656 if (auto *LI = dyn_cast<LoadInst>(U)) { in allUsesOfLoadedValueWillTrapIfNull()
692 assert((isa<LoadInst>(U) || isa<StoreInst>(U)) && in allUsesOfLoadAndStores()
707 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
781 if (LoadInst *LI = dyn_cast<LoadInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
931 LoadInst *LI = cast<LoadInst>(U); in OptimizeGlobalAddressOfAllocation()
943 Value *LV = new LoadInst(InitBool->getValueType(), InitBool, in OptimizeGlobalAddressOfAllocation()
1007 if (isa<LoadInst>(U) || isa<CmpInst>(U)) in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
1140 if (!isa<LoadInst>(U) && !isa<StoreInst>(U)) in TryToShrinkGlobalToBoolean()
1236 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean()
1239 StoreVal = new LoadInst(NewGV->getValueType(), NewGV, in TryToShrinkGlobalToBoolean()
1246 assert(isa<LoadInst>(StoreVal) && "Not a load of NewGV!"); in TryToShrinkGlobalToBoolean()
1255 LoadInst *LI = cast<LoadInst>(UI); in TryToShrinkGlobalToBoolean()
1256 LoadInst *NLI = new LoadInst(NewGV->getValueType(), NewGV, in TryToShrinkGlobalToBoolean()
1326 SmallVector<LoadInst *, 4> Loads; in isPointerValueDeadOnEntryToFunction()
1331 if (auto *LI = dyn_cast<LoadInst>(UU)) in isPointerValueDeadOnEntryToFunction()
1346 if (auto *LI = dyn_cast<LoadInst>(I)) in isPointerValueDeadOnEntryToFunction()
1459 SmallVector<LoadInst *> Loads; in forwardStoredOnceStore()
1461 if (auto *LI = dyn_cast<LoadInst>(U)) { in forwardStoredOnceStore()