Searched refs:UserInst (Results 1 – 10 of 10) sorted by relevance
123 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local124 if (auto *PN = dyn_cast<PHINode>(UserInst)) in dominates()129 return properlyDominates(BB, UserInst->getParent()); in dominates()251 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local253 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates()264 UseBB = UserInst->getParent(); in dominates()276 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local283 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates()286 UseBB = UserInst->getParent(); in dominates()315 if (isa<PHINode>(UserInst)) in dominates()[all …]
97 auto UserInst = cast<Instruction>(U.getUser()); in INITIALIZE_PASS_DEPENDENCY() local98 auto UserBlock = UserInst->getParent(); in INITIALIZE_PASS_DEPENDENCY()105 << ": " << UserInst->getName() << "(" in INITIALIZE_PASS_DEPENDENCY()108 ExternalUsers[&I].push_back(UserInst); in INITIALIZE_PASS_DEPENDENCY()
138 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local139 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions()140 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()957 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local958 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
416 Instruction *UserInst = dyn_cast<Instruction>(User); in lowerGlobalIFuncUsersAsGlobalCtor() local417 if (!UserInst) { in lowerGlobalIFuncUsersAsGlobalCtor()424 IRBuilder<> UseBuilder(UserInst); in lowerGlobalIFuncUsersAsGlobalCtor()429 UserInst->replaceUsesOfWith(GI, ResolvedCast); in lowerGlobalIFuncUsersAsGlobalCtor()
339 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) in isSafeToMoveBefore() local340 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
522 Instruction *UserInst = cast<Instruction>(U); in rewriteSingleStoreAlloca() local523 if (UserInst == OnlyStore) in rewriteSingleStoreAlloca()525 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
1123 Instruction *UserInst = nullptr; member1526 return !L->contains(UserInst); in isUseFullyOutsideLoop()1537 OS << UserInst->getOpcodeName(); in print()1902 Instruction *UserInst; member2992 if (isa<PHINode>(UserInst)) in ChainInstruction()3387 LF.UserInst = UserInst; in CollectFixupsAndInitialFormulae()3504 if (!UserInst) in CollectLoopInvariantFixupsAndFormulae()3507 if (UserInst->isEHPad()) in CollectLoopInvariantFixupsAndFormulae()3515 UserInst->getParent() : in CollectLoopInvariantFixupsAndFormulae()3578 LF.UserInst = const_cast<Instruction *>(UserInst); in CollectLoopInvariantFixupsAndFormulae()[all …]
2202 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local2203 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()2214 CallInst *UserInst = cast<CallInst>(U); in OptimizeWeakCalls() local2215 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()2219 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls()2227 UserInst->eraseFromParent(); in OptimizeWeakCalls()
4421 Instruction *UserInst = cast<Instruction>(U); in run() local4423 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) { in run()4436 if (UserParent && UserParent != UserInst->getParent()) in run()4438 UserParent = UserInst->getParent(); in run()
776 static bool doesInTreeUserNeedToExtract(Value *Scalar, Instruction *UserInst, in doesInTreeUserNeedToExtract() argument778 unsigned Opcode = UserInst->getOpcode(); in doesInTreeUserNeedToExtract()781 LoadInst *LI = cast<LoadInst>(UserInst); in doesInTreeUserNeedToExtract()785 StoreInst *SI = cast<StoreInst>(UserInst); in doesInTreeUserNeedToExtract()789 CallInst *CI = cast<CallInst>(UserInst); in doesInTreeUserNeedToExtract()4927 Instruction *UserInst = dyn_cast<Instruction>(U); in buildExternalUses() local4928 if (!UserInst || isDeleted(UserInst)) in buildExternalUses()4932 if (UserIgnoreList && UserIgnoreList->contains(UserInst)) in buildExternalUses()4952 LLVM_DEBUG(dbgs() << "SLP: Need to extract:" << *UserInst in buildExternalUses()