Lines Matching refs:TPT

412     bool tryToPromoteExts(TypePromotionTransaction &TPT,
424 bool HasPromoted, TypePromotionTransaction &TPT,
3131 TypePromotionTransaction &TPT; member in __anon5386100c0c11::AddressingModeMatcher
3152 TypePromotionTransaction &TPT, in AddressingModeMatcher() argument
3158 InsertedInsts(InsertedInsts), PromotedInsts(PromotedInsts), TPT(TPT), in AddressingModeMatcher()
3177 InstrToOrigTy &PromotedInsts, TypePromotionTransaction &TPT, in Match() argument
3184 InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP, OptSize, PSI, in Match()
4088 Instruction *Ext, TypePromotionTransaction &TPT,
4103 TypePromotionTransaction &TPT,
4112 Instruction *Ext, TypePromotionTransaction &TPT, in signExtendOperandForOther() argument
4116 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in signExtendOperandForOther()
4122 Instruction *Ext, TypePromotionTransaction &TPT, in zeroExtendOperandForOther() argument
4126 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in zeroExtendOperandForOther()
4132 using Action = Value *(*)(Instruction *Ext, TypePromotionTransaction &TPT,
4291 Instruction *SExt, TypePromotionTransaction &TPT, in promoteOperandForTruncAndAnyExt() argument
4305 TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType()); in promoteOperandForTruncAndAnyExt()
4306 TPT.replaceAllUsesWith(SExt, ZExt); in promoteOperandForTruncAndAnyExt()
4307 TPT.eraseInstruction(SExt); in promoteOperandForTruncAndAnyExt()
4312 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0)); in promoteOperandForTruncAndAnyExt()
4318 TPT.eraseInstruction(SExtOpnd); in promoteOperandForTruncAndAnyExt()
4334 TPT.eraseInstruction(ExtInst, NextVal); in promoteOperandForTruncAndAnyExt()
4339 Instruction *Ext, TypePromotionTransaction &TPT, in promoteOperandForOther() argument
4353 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
4361 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
4364 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
4376 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
4378 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
4398 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
4404 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
4413 Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType()) in promoteOperandForOther()
4414 : TPT.createZExt(Ext, Opnd, Ext->getType()); in promoteOperandForOther()
4416 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
4423 TPT.setOperand(ExtForOpnd, 0, Opnd); in promoteOperandForOther()
4426 TPT.moveBefore(ExtForOpnd, ExtOpnd); in promoteOperandForOther()
4427 TPT.setOperand(ExtOpnd, OpIdx, ExtForOpnd); in promoteOperandForOther()
4434 TPT.eraseInstruction(Ext); in promoteOperandForOther()
4524 TPT.getRestorationPoint(); in matchOperationAddr()
4534 TPT.rollback(LastKnownGood); in matchOperationAddr()
4544 TPT.rollback(LastKnownGood); in matchOperationAddr()
4698 TPT.getRestorationPoint(); in matchOperationAddr()
4702 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI); in matchOperationAddr()
4734 TPT.rollback(LastKnownGood); in matchOperationAddr()
4752 TPT.getRestorationPoint(); in matchAddr()
4793 TPT.rollback(LastKnownGood); in matchAddr()
4798 TPT.rollback(LastKnownGood); in matchAddr()
4825 TPT.rollback(LastKnownGood); in matchAddr()
5055 TPT.getRestorationPoint(); in isProfitableToFoldIntoAddressingMode()
5058 InsertedInsts, PromotedInsts, TPT, in isProfitableToFoldIntoAddressingMode()
5067 TPT.rollback(LastKnownGood); in isProfitableToFoldIntoAddressingMode()
5123 TypePromotionTransaction TPT(RemovedInsts); in optimizeMemoryInst() local
5125 TPT.getRestorationPoint(); in optimizeMemoryInst()
5171 *TRI, InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP, OptSize, PSI, in optimizeMemoryInst()
5193 TPT.rollback(LastKnownGood); in optimizeMemoryInst()
5196 bool Modified = TPT.commit(); in optimizeMemoryInst()
5710 TypePromotionTransaction &TPT, const SmallVectorImpl<Instruction *> &Exts, in tryToPromoteExts() argument
5742 TPT.getRestorationPoint(); in tryToPromoteExts()
5747 Value *PromotedVal = TPH(I, TPT, PromotedInsts, NewCreatedInstsCost, in tryToPromoteExts()
5769 TPT.rollback(LastKnownGood); in tryToPromoteExts()
5775 (void)tryToPromoteExts(TPT, NewExts, NewlyMovedExts, TotalCreatedInstsCost); in tryToPromoteExts()
5794 TPT.rollback(LastKnownGood); in tryToPromoteExts()
6225 TypePromotionTransaction TPT(RemovedInsts); in optimizeExt() local
6227 TPT.getRestorationPoint(); in optimizeExt()
6232 bool HasPromoted = tryToPromoteExts(TPT, Exts, SpeculativelyMovedExts); in optimizeExt()
6242 TPT.commit(); in optimizeExt()
6253 HasPromoted, TPT, SpeculativelyMovedExts)) in optimizeExt()
6256 TPT.rollback(LastKnownGood); in optimizeExt()
6267 bool HasPromoted, TypePromotionTransaction &TPT, in performAddressTypePromotion() argument
6287 TPT.commit(); in performAddressTypePromotion()
6312 TypePromotionTransaction TPT(RemovedInsts); in performAddressTypePromotion() local
6316 bool HasPromoted = tryToPromoteExts(TPT, Exts, Chains); in performAddressTypePromotion()
6317 TPT.commit(); in performAddressTypePromotion()