Lines Matching defs:TPT
454 bool tryToPromoteExts(TypePromotionTransaction &TPT,
465 bool HasPromoted, TypePromotionTransaction &TPT,
3761 TypePromotionTransaction &TPT;
3782 TypePromotionTransaction &TPT,
3788 InsertedInsts(InsertedInsts), PromotedInsts(PromotedInsts), TPT(TPT),
3807 InstrToOrigTy &PromotedInsts, TypePromotionTransaction &TPT,
3814 InsertedInsts, PromotedInsts, TPT,
4725 Instruction *Ext, TypePromotionTransaction &TPT,
4740 TypePromotionTransaction &TPT,
4749 Instruction *Ext, TypePromotionTransaction &TPT,
4753 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost,
4759 Instruction *Ext, TypePromotionTransaction &TPT,
4763 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost,
4769 using Action = Value *(*)(Instruction *Ext, TypePromotionTransaction &TPT,
4928 Instruction *SExt, TypePromotionTransaction &TPT,
4942 TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType());
4943 TPT.replaceAllUsesWith(SExt, ZExt);
4944 TPT.eraseInstruction(SExt);
4949 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0));
4955 TPT.eraseInstruction(SExtOpnd);
4971 TPT.eraseInstruction(ExtInst, NextVal);
4976 Instruction *Ext, TypePromotionTransaction &TPT,
4990 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType());
4998 TPT.replaceAllUsesWith(ExtOpnd, Trunc);
5001 TPT.setOperand(Ext, 0, ExtOpnd);
5013 TPT.mutateType(ExtOpnd, Ext->getType());
5015 TPT.replaceAllUsesWith(Ext, ExtOpnd);
5033 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal));
5039 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType()));
5045 ? TPT.createSExt(ExtOpnd, Opnd, Ext->getType())
5046 : TPT.createZExt(ExtOpnd, Opnd, Ext->getType());
5047 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd);
5058 TPT.eraseInstruction(Ext);
5149 TPT.getRestorationPoint();
5165 TPT.rollback(LastKnownGood);
5176 TPT.rollback(LastKnownGood);
5329 TPT.getRestorationPoint();
5333 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI);
5365 TPT.rollback(LastKnownGood);
5392 TPT.getRestorationPoint();
5432 TPT.rollback(LastKnownGood);
5437 TPT.rollback(LastKnownGood);
5464 TPT.rollback(LastKnownGood);
5687 TPT.getRestorationPoint();
5690 InsertedInsts, PromotedInsts, TPT,
5700 TPT.rollback(LastKnownGood);
5756 TypePromotionTransaction TPT(RemovedInsts);
5758 TPT.getRestorationPoint();
5803 *TRI, InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP, OptSize, PSI,
5824 TPT.rollback(LastKnownGood);
5827 bool Modified = TPT.commit();
6365 /// When some promotion happened, \p TPT contains the proper state to revert
6370 TypePromotionTransaction &TPT, const SmallVectorImpl<Instruction *> &Exts,
6402 TPT.getRestorationPoint();
6407 Value *PromotedVal = TPH(I, TPT, PromotedInsts, NewCreatedInstsCost,
6432 TPT.rollback(LastKnownGood);
6438 (void)tryToPromoteExts(TPT, NewExts, NewlyMovedExts, TotalCreatedInstsCost);
6457 TPT.rollback(LastKnownGood);
6895 TypePromotionTransaction TPT(RemovedInsts);
6897 TPT.getRestorationPoint();
6902 bool HasPromoted = tryToPromoteExts(TPT, Exts, SpeculativelyMovedExts);
6912 TPT.commit();
6923 HasPromoted, TPT, SpeculativelyMovedExts))
6926 TPT.rollback(LastKnownGood);
6937 bool HasPromoted, TypePromotionTransaction &TPT,
6957 TPT.commit();
6982 TypePromotionTransaction TPT(RemovedInsts);
6986 bool HasPromoted = tryToPromoteExts(TPT, Exts, Chains);
6987 TPT.commit();