Lines Matching refs:User
361 static bool canVectorizeInst(Instruction *Inst, User *User, in canVectorizeInst() argument
368 if (isa<AllocaInst>(User) && in canVectorizeInst()
369 LI->getPointerOperandType() == User->getType() && in canVectorizeInst()
388 if (isa<AllocaInst>(User) && in canVectorizeInst()
389 SI->getPointerOperandType() == User->getType() && in canVectorizeInst()
393 Instruction *UserInst = dyn_cast<Instruction>(User); in canVectorizeInst()
397 return (SI->getPointerOperand() == User) && in canVectorizeInst()
447 SmallVector<User *, 8> Users(Alloca->users()); in tryPromoteAllocaToVector()
448 SmallVector<User *, 8> UseUsers(Users.size(), Alloca); in tryPromoteAllocaToVector()
451 User *AllocaUser = Users.pop_back_val(); in tryPromoteAllocaToVector()
452 User *UseUser = UseUsers.pop_back_val(); in tryPromoteAllocaToVector()
467 for (User *CastUser : Inst->users()) { in tryPromoteAllocaToVector()
607 for (User *User : Val->users()) { in collectUsesWithPtrTypes()
608 if (is_contained(WorkList, User)) in collectUsesWithPtrTypes()
611 if (CallInst *CI = dyn_cast<CallInst>(User)) { in collectUsesWithPtrTypes()
615 WorkList.push_back(User); in collectUsesWithPtrTypes()
619 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes()
660 WorkList.push_back(User); in collectUsesWithPtrTypes()
666 if (isa<InsertValueInst>(User) || isa<InsertElementInst>(User)) in collectUsesWithPtrTypes()
669 if (!User->getType()->isPointerTy()) in collectUsesWithPtrTypes()
702 WorkList.push_back(User); in collectUsesWithPtrTypes()
703 if (!collectUsesWithPtrTypes(BaseAlloca, User, WorkList)) in collectUsesWithPtrTypes()
737 for (const User *U : Val->users()) { in hasSufficientLocalMem()