Lines Matching refs:ToBePromoted
7523 void promoteImpl(Instruction *ToBePromoted);
7650 bool canPromote(const Instruction *ToBePromoted) const { in canPromote()
7652 return isa<BinaryOperator>(ToBePromoted); in canPromote()
7657 bool shouldPromote(const Instruction *ToBePromoted) const { in shouldPromote()
7660 for (const Use &U : ToBePromoted->operands()) { in shouldPromote()
7666 if (canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())) in shouldPromote()
7675 int ISDOpcode = TLI.InstructionOpcodeToISD(ToBePromoted->getOpcode()); in shouldPromote()
7689 void enqueueForPromotion(Instruction *ToBePromoted) { in enqueueForPromotion() argument
7690 InstsToBePromoted.push_back(ToBePromoted); in enqueueForPromotion()
7714 for (auto &ToBePromoted : InstsToBePromoted) in promote() local
7715 promoteImpl(ToBePromoted); in promote()
7723 void VectorPromoteHelper::promoteImpl(Instruction *ToBePromoted) { in promoteImpl() argument
7732 assert(ToBePromoted->getType() == Transition->getType() && in promoteImpl()
7735 ToBePromoted->replaceAllUsesWith(Transition); in promoteImpl()
7739 ToBePromoted->mutateType(TransitionTy); in promoteImpl()
7743 for (Use &U : ToBePromoted->operands()) { in promoteImpl()
7754 canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())); in promoteImpl()
7758 ToBePromoted->setOperand(U.getOperandNo(), NewVal); in promoteImpl()
7760 Transition->moveAfter(ToBePromoted); in promoteImpl()
7761 Transition->setOperand(getTransitionOriginalValueIdx(), ToBePromoted); in promoteImpl()
7788 Instruction *ToBePromoted = cast<Instruction>(*Inst->user_begin()); in optimizeExtractElementInst() local
7789 LLVM_DEBUG(dbgs() << "Use: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
7791 if (ToBePromoted->getParent() != Parent) { in optimizeExtractElementInst()
7793 << ToBePromoted->getParent()->getName() in optimizeExtractElementInst()
7799 if (VPH.canCombine(ToBePromoted)) { in optimizeExtractElementInst()
7801 << "will be combined with: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
7802 VPH.recordCombineInstruction(ToBePromoted); in optimizeExtractElementInst()
7809 if (!VPH.canPromote(ToBePromoted) || !VPH.shouldPromote(ToBePromoted)) in optimizeExtractElementInst()
7814 VPH.enqueueForPromotion(ToBePromoted); in optimizeExtractElementInst()
7815 Inst = ToBePromoted; in optimizeExtractElementInst()