Lines Matching refs:LoadInst
128 std::map<std::pair<Argument *, IndicesVector>, LoadInst *> OriginalLoads; in doPromotion()
169 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in doPromotion()
185 LoadInst *OrigLoad; in doPromotion()
186 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in doPromotion()
190 OrigLoad = cast<LoadInst>(UI->user_back()); in doPromotion()
267 Args.push_back(new LoadInst(Idx, Idx->getName() + ".val", Call)); in doPromotion()
278 LoadInst *OrigLoad = in doPromotion()
303 LoadInst *newLoad = new LoadInst(V, V->getName() + ".val", Call); in doPromotion()
425 if (LoadInst *LI = dyn_cast<LoadInst>(I->user_back())) { in doPromotion()
464 LoadInst *L = cast<LoadInst>(GEP->user_back()); in doPromotion()
608 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in isSafeToPromoteArgument()
636 SmallVector<LoadInst *, 16> Loads; in isSafeToPromoteArgument()
641 if (LoadInst *LI = dyn_cast<LoadInst>(UR)) { in isSafeToPromoteArgument()
670 if (LoadInst *LI = dyn_cast<LoadInst>(GEPU)) { in isSafeToPromoteArgument()
718 for (LoadInst *Load : Loads) { in isSafeToPromoteArgument()
800 } else if (!isa<LoadInst>(V)) { in canPaddingBeAccessed()