Lines Matching refs:TPT

454   bool tryToPromoteExts(TypePromotionTransaction &TPT,
465 bool HasPromoted, TypePromotionTransaction &TPT,
3380 TypePromotionTransaction &TPT; member in __anon01de4a8e0c11::AddressingModeMatcher
3401 TypePromotionTransaction &TPT, in AddressingModeMatcher() argument
3407 InsertedInsts(InsertedInsts), PromotedInsts(PromotedInsts), TPT(TPT), in AddressingModeMatcher()
3426 InstrToOrigTy &PromotedInsts, TypePromotionTransaction &TPT, in Match() argument
3433 InsertedInsts, PromotedInsts, TPT, in Match()
4343 Instruction *Ext, TypePromotionTransaction &TPT,
4358 TypePromotionTransaction &TPT,
4367 Instruction *Ext, TypePromotionTransaction &TPT, in signExtendOperandForOther() argument
4371 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in signExtendOperandForOther()
4377 Instruction *Ext, TypePromotionTransaction &TPT, in zeroExtendOperandForOther() argument
4381 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in zeroExtendOperandForOther()
4387 using Action = Value *(*)(Instruction *Ext, TypePromotionTransaction &TPT,
4546 Instruction *SExt, TypePromotionTransaction &TPT, in promoteOperandForTruncAndAnyExt() argument
4560 TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType()); in promoteOperandForTruncAndAnyExt()
4561 TPT.replaceAllUsesWith(SExt, ZExt); in promoteOperandForTruncAndAnyExt()
4562 TPT.eraseInstruction(SExt); in promoteOperandForTruncAndAnyExt()
4567 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0)); in promoteOperandForTruncAndAnyExt()
4573 TPT.eraseInstruction(SExtOpnd); in promoteOperandForTruncAndAnyExt()
4589 TPT.eraseInstruction(ExtInst, NextVal); in promoteOperandForTruncAndAnyExt()
4594 Instruction *Ext, TypePromotionTransaction &TPT, in promoteOperandForOther() argument
4608 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
4616 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
4619 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
4631 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
4633 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
4651 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
4657 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
4663 ? TPT.createSExt(ExtOpnd, Opnd, Ext->getType()) in promoteOperandForOther()
4664 : TPT.createZExt(ExtOpnd, Opnd, Ext->getType()); in promoteOperandForOther()
4665 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
4676 TPT.eraseInstruction(Ext); in promoteOperandForOther()
4767 TPT.getRestorationPoint(); in matchOperationAddr()
4783 TPT.rollback(LastKnownGood); in matchOperationAddr()
4794 TPT.rollback(LastKnownGood); in matchOperationAddr()
4947 TPT.getRestorationPoint(); in matchOperationAddr()
4951 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI); in matchOperationAddr()
4983 TPT.rollback(LastKnownGood); in matchOperationAddr()
5001 TPT.getRestorationPoint(); in matchAddr()
5041 TPT.rollback(LastKnownGood); in matchAddr()
5046 TPT.rollback(LastKnownGood); in matchAddr()
5073 TPT.rollback(LastKnownGood); in matchAddr()
5298 TPT.getRestorationPoint(); in isProfitableToFoldIntoAddressingMode()
5301 InsertedInsts, PromotedInsts, TPT, in isProfitableToFoldIntoAddressingMode()
5311 TPT.rollback(LastKnownGood); in isProfitableToFoldIntoAddressingMode()
5367 TypePromotionTransaction TPT(RemovedInsts); in optimizeMemoryInst() local
5369 TPT.getRestorationPoint(); in optimizeMemoryInst()
5414 *TRI, InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP, OptSize, PSI, in optimizeMemoryInst()
5435 TPT.rollback(LastKnownGood); in optimizeMemoryInst()
5438 bool Modified = TPT.commit(); in optimizeMemoryInst()
5969 TypePromotionTransaction &TPT, const SmallVectorImpl<Instruction *> &Exts, in tryToPromoteExts() argument
6001 TPT.getRestorationPoint(); in tryToPromoteExts()
6006 Value *PromotedVal = TPH(I, TPT, PromotedInsts, NewCreatedInstsCost, in tryToPromoteExts()
6031 TPT.rollback(LastKnownGood); in tryToPromoteExts()
6037 (void)tryToPromoteExts(TPT, NewExts, NewlyMovedExts, TotalCreatedInstsCost); in tryToPromoteExts()
6056 TPT.rollback(LastKnownGood); in tryToPromoteExts()
6496 TypePromotionTransaction TPT(RemovedInsts); in optimizeExt() local
6498 TPT.getRestorationPoint(); in optimizeExt()
6503 bool HasPromoted = tryToPromoteExts(TPT, Exts, SpeculativelyMovedExts); in optimizeExt()
6513 TPT.commit(); in optimizeExt()
6524 HasPromoted, TPT, SpeculativelyMovedExts)) in optimizeExt()
6527 TPT.rollback(LastKnownGood); in optimizeExt()
6538 bool HasPromoted, TypePromotionTransaction &TPT, in performAddressTypePromotion() argument
6558 TPT.commit(); in performAddressTypePromotion()
6583 TypePromotionTransaction TPT(RemovedInsts); in performAddressTypePromotion() local
6587 bool HasPromoted = tryToPromoteExts(TPT, Exts, Chains); in performAddressTypePromotion()
6588 TPT.commit(); in performAddressTypePromotion()