Lines Matching refs:TPT

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