Lines Matching refs:ToBePromoted

6087   void promoteImpl(Instruction *ToBePromoted);
6209 bool canPromote(const Instruction *ToBePromoted) const { in canPromote()
6211 return isa<BinaryOperator>(ToBePromoted); in canPromote()
6216 bool shouldPromote(const Instruction *ToBePromoted) const { in shouldPromote()
6219 for (const Use &U : ToBePromoted->operands()) { in shouldPromote()
6225 if (canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())) in shouldPromote()
6234 int ISDOpcode = TLI.InstructionOpcodeToISD(ToBePromoted->getOpcode()); in shouldPromote()
6248 void enqueueForPromotion(Instruction *ToBePromoted) { in enqueueForPromotion() argument
6249 InstsToBePromoted.push_back(ToBePromoted); in enqueueForPromotion()
6273 for (auto &ToBePromoted : InstsToBePromoted) in promote() local
6274 promoteImpl(ToBePromoted); in promote()
6282 void VectorPromoteHelper::promoteImpl(Instruction *ToBePromoted) { in promoteImpl() argument
6291 assert(ToBePromoted->getType() == Transition->getType() && in promoteImpl()
6294 ToBePromoted->replaceAllUsesWith(Transition); in promoteImpl()
6298 ToBePromoted->mutateType(TransitionTy); in promoteImpl()
6302 for (Use &U : ToBePromoted->operands()) { in promoteImpl()
6313 canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())); in promoteImpl()
6317 ToBePromoted->setOperand(U.getOperandNo(), NewVal); in promoteImpl()
6319 Transition->moveAfter(ToBePromoted); in promoteImpl()
6320 Transition->setOperand(getTransitionOriginalValueIdx(), ToBePromoted); in promoteImpl()
6347 Instruction *ToBePromoted = cast<Instruction>(*Inst->user_begin()); in optimizeExtractElementInst() local
6348 LLVM_DEBUG(dbgs() << "Use: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
6350 if (ToBePromoted->getParent() != Parent) { in optimizeExtractElementInst()
6352 << ToBePromoted->getParent()->getName() in optimizeExtractElementInst()
6358 if (VPH.canCombine(ToBePromoted)) { in optimizeExtractElementInst()
6360 << "will be combined with: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
6361 VPH.recordCombineInstruction(ToBePromoted); in optimizeExtractElementInst()
6368 if (!VPH.canPromote(ToBePromoted) || !VPH.shouldPromote(ToBePromoted)) in optimizeExtractElementInst()
6373 VPH.enqueueForPromotion(ToBePromoted); in optimizeExtractElementInst()
6374 Inst = ToBePromoted; in optimizeExtractElementInst()