Lines Matching refs:ToBePromoted
4807 void promoteImpl(Instruction *ToBePromoted);
4928 bool canPromote(const Instruction *ToBePromoted) const { in canPromote()
4930 return isa<BinaryOperator>(ToBePromoted); in canPromote()
4935 bool shouldPromote(const Instruction *ToBePromoted) const { in shouldPromote()
4938 for (const Use &U : ToBePromoted->operands()) { in shouldPromote()
4944 if (canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())) in shouldPromote()
4953 int ISDOpcode = TLI.InstructionOpcodeToISD(ToBePromoted->getOpcode()); in shouldPromote()
4967 void enqueueForPromotion(Instruction *ToBePromoted) { in enqueueForPromotion() argument
4968 InstsToBePromoted.push_back(ToBePromoted); in enqueueForPromotion()
4992 for (auto &ToBePromoted : InstsToBePromoted) in promote() local
4993 promoteImpl(ToBePromoted); in promote()
5000 void VectorPromoteHelper::promoteImpl(Instruction *ToBePromoted) { in promoteImpl() argument
5009 assert(ToBePromoted->getType() == Transition->getType() && in promoteImpl()
5012 ToBePromoted->replaceAllUsesWith(Transition); in promoteImpl()
5016 ToBePromoted->mutateType(TransitionTy); in promoteImpl()
5020 for (Use &U : ToBePromoted->operands()) { in promoteImpl()
5031 canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())); in promoteImpl()
5035 ToBePromoted->setOperand(U.getOperandNo(), NewVal); in promoteImpl()
5038 Transition->insertAfter(ToBePromoted); in promoteImpl()
5039 Transition->setOperand(getTransitionOriginalValueIdx(), ToBePromoted); in promoteImpl()
5066 Instruction *ToBePromoted = cast<Instruction>(*Inst->user_begin()); in optimizeExtractElementInst() local
5067 DEBUG(dbgs() << "Use: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
5069 if (ToBePromoted->getParent() != Parent) { in optimizeExtractElementInst()
5071 << ToBePromoted->getParent()->getName() in optimizeExtractElementInst()
5076 if (VPH.canCombine(ToBePromoted)) { in optimizeExtractElementInst()
5078 << "will be combined with: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
5079 VPH.recordCombineInstruction(ToBePromoted); in optimizeExtractElementInst()
5086 if (!VPH.canPromote(ToBePromoted) || !VPH.shouldPromote(ToBePromoted)) in optimizeExtractElementInst()
5091 VPH.enqueueForPromotion(ToBePromoted); in optimizeExtractElementInst()
5092 Inst = ToBePromoted; in optimizeExtractElementInst()