Lines Matching refs:ToBePromoted

7637   void promoteImpl(Instruction *ToBePromoted);
7764 bool canPromote(const Instruction *ToBePromoted) const { in canPromote()
7766 return isa<BinaryOperator>(ToBePromoted); in canPromote()
7771 bool shouldPromote(const Instruction *ToBePromoted) const { in shouldPromote()
7774 for (const Use &U : ToBePromoted->operands()) { in shouldPromote()
7780 if (canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())) in shouldPromote()
7789 int ISDOpcode = TLI.InstructionOpcodeToISD(ToBePromoted->getOpcode()); in shouldPromote()
7803 void enqueueForPromotion(Instruction *ToBePromoted) { in enqueueForPromotion() argument
7804 InstsToBePromoted.push_back(ToBePromoted); in enqueueForPromotion()
7828 for (auto &ToBePromoted : InstsToBePromoted) in promote() local
7829 promoteImpl(ToBePromoted); in promote()
7837 void VectorPromoteHelper::promoteImpl(Instruction *ToBePromoted) { in promoteImpl() argument
7846 assert(ToBePromoted->getType() == Transition->getType() && in promoteImpl()
7849 ToBePromoted->replaceAllUsesWith(Transition); in promoteImpl()
7853 ToBePromoted->mutateType(TransitionTy); in promoteImpl()
7857 for (Use &U : ToBePromoted->operands()) { in promoteImpl()
7868 canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())); in promoteImpl()
7872 ToBePromoted->setOperand(U.getOperandNo(), NewVal); in promoteImpl()
7874 Transition->moveAfter(ToBePromoted); in promoteImpl()
7875 Transition->setOperand(getTransitionOriginalValueIdx(), ToBePromoted); in promoteImpl()
7902 Instruction *ToBePromoted = cast<Instruction>(*Inst->user_begin()); in optimizeExtractElementInst() local
7903 LLVM_DEBUG(dbgs() << "Use: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
7905 if (ToBePromoted->getParent() != Parent) { in optimizeExtractElementInst()
7907 << ToBePromoted->getParent()->getName() in optimizeExtractElementInst()
7913 if (VPH.canCombine(ToBePromoted)) { in optimizeExtractElementInst()
7915 << "will be combined with: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
7916 VPH.recordCombineInstruction(ToBePromoted); in optimizeExtractElementInst()
7923 if (!VPH.canPromote(ToBePromoted) || !VPH.shouldPromote(ToBePromoted)) in optimizeExtractElementInst()
7928 VPH.enqueueForPromotion(ToBePromoted); in optimizeExtractElementInst()
7929 Inst = ToBePromoted; in optimizeExtractElementInst()