Lines Matching refs:ToBePromoted

8029   void promoteImpl(Instruction *ToBePromoted);
8156 bool canPromote(const Instruction *ToBePromoted) const { in canPromote()
8158 return isa<BinaryOperator>(ToBePromoted); in canPromote()
8163 bool shouldPromote(const Instruction *ToBePromoted) const { in shouldPromote()
8166 for (const Use &U : ToBePromoted->operands()) { in shouldPromote()
8172 if (canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())) in shouldPromote()
8181 int ISDOpcode = TLI.InstructionOpcodeToISD(ToBePromoted->getOpcode()); in shouldPromote()
8195 void enqueueForPromotion(Instruction *ToBePromoted) { in enqueueForPromotion() argument
8196 InstsToBePromoted.push_back(ToBePromoted); in enqueueForPromotion()
8220 for (auto &ToBePromoted : InstsToBePromoted) in promote() local
8221 promoteImpl(ToBePromoted); in promote()
8229 void VectorPromoteHelper::promoteImpl(Instruction *ToBePromoted) { in promoteImpl() argument
8238 assert(ToBePromoted->getType() == Transition->getType() && in promoteImpl()
8241 ToBePromoted->replaceAllUsesWith(Transition); in promoteImpl()
8245 ToBePromoted->mutateType(TransitionTy); in promoteImpl()
8249 for (Use &U : ToBePromoted->operands()) { in promoteImpl()
8260 canCauseUndefinedBehavior(ToBePromoted, U.getOperandNo())); in promoteImpl()
8264 ToBePromoted->setOperand(U.getOperandNo(), NewVal); in promoteImpl()
8266 Transition->moveAfter(ToBePromoted); in promoteImpl()
8267 Transition->setOperand(getTransitionOriginalValueIdx(), ToBePromoted); in promoteImpl()
8294 Instruction *ToBePromoted = cast<Instruction>(*Inst->user_begin()); in optimizeExtractElementInst() local
8295 LLVM_DEBUG(dbgs() << "Use: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
8297 if (ToBePromoted->getParent() != Parent) { in optimizeExtractElementInst()
8299 << ToBePromoted->getParent()->getName() in optimizeExtractElementInst()
8305 if (VPH.canCombine(ToBePromoted)) { in optimizeExtractElementInst()
8307 << "will be combined with: " << *ToBePromoted << '\n'); in optimizeExtractElementInst()
8308 VPH.recordCombineInstruction(ToBePromoted); in optimizeExtractElementInst()
8315 if (!VPH.canPromote(ToBePromoted) || !VPH.shouldPromote(ToBePromoted)) in optimizeExtractElementInst()
8320 VPH.enqueueForPromotion(ToBePromoted); in optimizeExtractElementInst()
8321 Inst = ToBePromoted; in optimizeExtractElementInst()