Lines Matching refs:TPT

366     bool tryToPromoteExts(TypePromotionTransaction &TPT,
375 bool HasPromoted, TypePromotionTransaction &TPT,
2615 TypePromotionTransaction &TPT; member in __anon6227213d0811::AddressingModeMatcher
2628 InstrToOrigTy &PromotedInsts, TypePromotionTransaction &TPT, in AddressingModeMatcher() argument
2633 PromotedInsts(PromotedInsts), TPT(TPT), LargeOffsetGEP(LargeOffsetGEP) { in AddressingModeMatcher()
2650 TypePromotionTransaction &TPT, in Match() argument
2656 PromotedInsts, TPT, LargeOffsetGEP) in Match()
3491 Instruction *Ext, TypePromotionTransaction &TPT,
3506 TypePromotionTransaction &TPT,
3515 Instruction *Ext, TypePromotionTransaction &TPT, in signExtendOperandForOther() argument
3519 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in signExtendOperandForOther()
3525 Instruction *Ext, TypePromotionTransaction &TPT, in zeroExtendOperandForOther() argument
3529 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in zeroExtendOperandForOther()
3535 using Action = Value *(*)(Instruction *Ext, TypePromotionTransaction &TPT,
3696 Instruction *SExt, TypePromotionTransaction &TPT, in promoteOperandForTruncAndAnyExt() argument
3710 TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType()); in promoteOperandForTruncAndAnyExt()
3711 TPT.replaceAllUsesWith(SExt, ZExt); in promoteOperandForTruncAndAnyExt()
3712 TPT.eraseInstruction(SExt); in promoteOperandForTruncAndAnyExt()
3717 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0)); in promoteOperandForTruncAndAnyExt()
3723 TPT.eraseInstruction(SExtOpnd); in promoteOperandForTruncAndAnyExt()
3739 TPT.eraseInstruction(ExtInst, NextVal); in promoteOperandForTruncAndAnyExt()
3744 Instruction *Ext, TypePromotionTransaction &TPT, in promoteOperandForOther() argument
3758 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
3766 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
3769 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
3781 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
3783 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
3803 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
3809 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
3818 Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType()) in promoteOperandForOther()
3819 : TPT.createZExt(Ext, Opnd, Ext->getType()); in promoteOperandForOther()
3821 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
3828 TPT.setOperand(ExtForOpnd, 0, Opnd); in promoteOperandForOther()
3831 TPT.moveBefore(ExtForOpnd, ExtOpnd); in promoteOperandForOther()
3832 TPT.setOperand(ExtOpnd, OpIdx, ExtForOpnd); in promoteOperandForOther()
3839 TPT.eraseInstruction(Ext); in promoteOperandForOther()
3929 TPT.getRestorationPoint(); in matchOperationAddr()
3938 TPT.rollback(LastKnownGood); in matchOperationAddr()
3948 TPT.rollback(LastKnownGood); in matchOperationAddr()
4095 TPT.getRestorationPoint(); in matchOperationAddr()
4099 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI); in matchOperationAddr()
4131 TPT.rollback(LastKnownGood); in matchOperationAddr()
4149 TPT.getRestorationPoint(); in matchAddr()
4188 TPT.rollback(LastKnownGood); in matchAddr()
4193 TPT.rollback(LastKnownGood); in matchAddr()
4220 TPT.rollback(LastKnownGood); in matchAddr()
4447 TPT.getRestorationPoint(); in isProfitableToFoldIntoAddressingMode()
4450 InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP); in isProfitableToFoldIntoAddressingMode()
4458 TPT.rollback(LastKnownGood); in isProfitableToFoldIntoAddressingMode()
4514 TypePromotionTransaction TPT(RemovedInsts); in optimizeMemoryInst() local
4516 TPT.getRestorationPoint(); in optimizeMemoryInst()
4556 InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP); in optimizeMemoryInst()
4578 TPT.rollback(LastKnownGood); in optimizeMemoryInst()
4581 TPT.commit(); in optimizeMemoryInst()
4944 TypePromotionTransaction &TPT, const SmallVectorImpl<Instruction *> &Exts, in tryToPromoteExts() argument
4976 TPT.getRestorationPoint(); in tryToPromoteExts()
4981 Value *PromotedVal = TPH(I, TPT, PromotedInsts, NewCreatedInstsCost, in tryToPromoteExts()
5003 TPT.rollback(LastKnownGood); in tryToPromoteExts()
5009 (void)tryToPromoteExts(TPT, NewExts, NewlyMovedExts, TotalCreatedInstsCost); in tryToPromoteExts()
5028 TPT.rollback(LastKnownGood); in tryToPromoteExts()
5298 TypePromotionTransaction TPT(RemovedInsts); in optimizeExt() local
5300 TPT.getRestorationPoint(); in optimizeExt()
5305 bool HasPromoted = tryToPromoteExts(TPT, Exts, SpeculativelyMovedExts); in optimizeExt()
5315 TPT.commit(); in optimizeExt()
5334 HasPromoted, TPT, SpeculativelyMovedExts)) in optimizeExt()
5337 TPT.rollback(LastKnownGood); in optimizeExt()
5348 bool HasPromoted, TypePromotionTransaction &TPT, in performAddressTypePromotion() argument
5368 TPT.commit(); in performAddressTypePromotion()
5393 TypePromotionTransaction TPT(RemovedInsts); in performAddressTypePromotion() local
5397 bool HasPromoted = tryToPromoteExts(TPT, Exts, Chains); in performAddressTypePromotion()
5398 TPT.commit(); in performAddressTypePromotion()