Lines Matching defs:TPT

454   bool tryToPromoteExts(TypePromotionTransaction &TPT,
465 bool HasPromoted, TypePromotionTransaction &TPT,
3474 TypePromotionTransaction &TPT;
3495 TypePromotionTransaction &TPT,
3501 InsertedInsts(InsertedInsts), PromotedInsts(PromotedInsts), TPT(TPT),
3520 InstrToOrigTy &PromotedInsts, TypePromotionTransaction &TPT,
3527 InsertedInsts, PromotedInsts, TPT,
4438 Instruction *Ext, TypePromotionTransaction &TPT,
4453 TypePromotionTransaction &TPT,
4462 Instruction *Ext, TypePromotionTransaction &TPT,
4466 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost,
4472 Instruction *Ext, TypePromotionTransaction &TPT,
4476 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost,
4482 using Action = Value *(*)(Instruction *Ext, TypePromotionTransaction &TPT,
4641 Instruction *SExt, TypePromotionTransaction &TPT,
4655 TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType());
4656 TPT.replaceAllUsesWith(SExt, ZExt);
4657 TPT.eraseInstruction(SExt);
4662 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0));
4668 TPT.eraseInstruction(SExtOpnd);
4684 TPT.eraseInstruction(ExtInst, NextVal);
4689 Instruction *Ext, TypePromotionTransaction &TPT,
4703 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType());
4711 TPT.replaceAllUsesWith(ExtOpnd, Trunc);
4714 TPT.setOperand(Ext, 0, ExtOpnd);
4726 TPT.mutateType(ExtOpnd, Ext->getType());
4728 TPT.replaceAllUsesWith(Ext, ExtOpnd);
4746 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal));
4752 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType()));
4758 ? TPT.createSExt(ExtOpnd, Opnd, Ext->getType())
4759 : TPT.createZExt(ExtOpnd, Opnd, Ext->getType());
4760 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd);
4771 TPT.eraseInstruction(Ext);
4862 TPT.getRestorationPoint();
4878 TPT.rollback(LastKnownGood);
4889 TPT.rollback(LastKnownGood);
5042 TPT.getRestorationPoint();
5046 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI);
5078 TPT.rollback(LastKnownGood);
5105 TPT.getRestorationPoint();
5145 TPT.rollback(LastKnownGood);
5150 TPT.rollback(LastKnownGood);
5177 TPT.rollback(LastKnownGood);
5402 TPT.getRestorationPoint();
5405 InsertedInsts, PromotedInsts, TPT,
5415 TPT.rollback(LastKnownGood);
5471 TypePromotionTransaction TPT(RemovedInsts);
5473 TPT.getRestorationPoint();
5518 *TRI, InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP, OptSize, PSI,
5539 TPT.rollback(LastKnownGood);
5542 bool Modified = TPT.commit();
6080 /// When some promotion happened, \p TPT contains the proper state to revert
6085 TypePromotionTransaction &TPT, const SmallVectorImpl<Instruction *> &Exts,
6117 TPT.getRestorationPoint();
6122 Value *PromotedVal = TPH(I, TPT, PromotedInsts, NewCreatedInstsCost,
6147 TPT.rollback(LastKnownGood);
6153 (void)tryToPromoteExts(TPT, NewExts, NewlyMovedExts, TotalCreatedInstsCost);
6172 TPT.rollback(LastKnownGood);
6610 TypePromotionTransaction TPT(RemovedInsts);
6612 TPT.getRestorationPoint();
6617 bool HasPromoted = tryToPromoteExts(TPT, Exts, SpeculativelyMovedExts);
6627 TPT.commit();
6638 HasPromoted, TPT, SpeculativelyMovedExts))
6641 TPT.rollback(LastKnownGood);
6652 bool HasPromoted, TypePromotionTransaction &TPT,
6672 TPT.commit();
6697 TypePromotionTransaction TPT(RemovedInsts);
6701 bool HasPromoted = tryToPromoteExts(TPT, Exts, Chains);
6702 TPT.commit();