Lines Matching refs:TPT
423 bool tryToPromoteExts(TypePromotionTransaction &TPT,
435 bool HasPromoted, TypePromotionTransaction &TPT,
3150 TypePromotionTransaction &TPT; member in __anon78e22a880c11::AddressingModeMatcher
3171 TypePromotionTransaction &TPT, in AddressingModeMatcher() argument
3177 InsertedInsts(InsertedInsts), PromotedInsts(PromotedInsts), TPT(TPT), in AddressingModeMatcher()
3196 InstrToOrigTy &PromotedInsts, TypePromotionTransaction &TPT, in Match() argument
3203 InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP, OptSize, PSI, in Match()
4108 Instruction *Ext, TypePromotionTransaction &TPT,
4123 TypePromotionTransaction &TPT,
4132 Instruction *Ext, TypePromotionTransaction &TPT, in signExtendOperandForOther() argument
4136 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in signExtendOperandForOther()
4142 Instruction *Ext, TypePromotionTransaction &TPT, in zeroExtendOperandForOther() argument
4146 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in zeroExtendOperandForOther()
4152 using Action = Value *(*)(Instruction *Ext, TypePromotionTransaction &TPT,
4311 Instruction *SExt, TypePromotionTransaction &TPT, in promoteOperandForTruncAndAnyExt() argument
4325 TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType()); in promoteOperandForTruncAndAnyExt()
4326 TPT.replaceAllUsesWith(SExt, ZExt); in promoteOperandForTruncAndAnyExt()
4327 TPT.eraseInstruction(SExt); in promoteOperandForTruncAndAnyExt()
4332 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0)); in promoteOperandForTruncAndAnyExt()
4338 TPT.eraseInstruction(SExtOpnd); in promoteOperandForTruncAndAnyExt()
4354 TPT.eraseInstruction(ExtInst, NextVal); in promoteOperandForTruncAndAnyExt()
4359 Instruction *Ext, TypePromotionTransaction &TPT, in promoteOperandForOther() argument
4373 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
4381 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
4384 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
4396 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
4398 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
4418 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
4424 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
4433 Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType()) in promoteOperandForOther()
4434 : TPT.createZExt(Ext, Opnd, Ext->getType()); in promoteOperandForOther()
4436 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
4443 TPT.setOperand(ExtForOpnd, 0, Opnd); in promoteOperandForOther()
4446 TPT.moveBefore(ExtForOpnd, ExtOpnd); in promoteOperandForOther()
4447 TPT.setOperand(ExtOpnd, OpIdx, ExtForOpnd); in promoteOperandForOther()
4454 TPT.eraseInstruction(Ext); in promoteOperandForOther()
4544 TPT.getRestorationPoint(); in matchOperationAddr()
4554 TPT.rollback(LastKnownGood); in matchOperationAddr()
4564 TPT.rollback(LastKnownGood); in matchOperationAddr()
4718 TPT.getRestorationPoint(); in matchOperationAddr()
4722 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI); in matchOperationAddr()
4754 TPT.rollback(LastKnownGood); in matchOperationAddr()
4772 TPT.getRestorationPoint(); in matchAddr()
4812 TPT.rollback(LastKnownGood); in matchAddr()
4817 TPT.rollback(LastKnownGood); in matchAddr()
4844 TPT.rollback(LastKnownGood); in matchAddr()
5060 TPT.getRestorationPoint(); in isProfitableToFoldIntoAddressingMode()
5063 InsertedInsts, PromotedInsts, TPT, in isProfitableToFoldIntoAddressingMode()
5072 TPT.rollback(LastKnownGood); in isProfitableToFoldIntoAddressingMode()
5128 TypePromotionTransaction TPT(RemovedInsts); in optimizeMemoryInst() local
5130 TPT.getRestorationPoint(); in optimizeMemoryInst()
5175 *TRI, InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP, OptSize, PSI, in optimizeMemoryInst()
5196 TPT.rollback(LastKnownGood); in optimizeMemoryInst()
5199 bool Modified = TPT.commit(); in optimizeMemoryInst()
5732 TypePromotionTransaction &TPT, const SmallVectorImpl<Instruction *> &Exts, in tryToPromoteExts() argument
5764 TPT.getRestorationPoint(); in tryToPromoteExts()
5769 Value *PromotedVal = TPH(I, TPT, PromotedInsts, NewCreatedInstsCost, in tryToPromoteExts()
5791 TPT.rollback(LastKnownGood); in tryToPromoteExts()
5797 (void)tryToPromoteExts(TPT, NewExts, NewlyMovedExts, TotalCreatedInstsCost); in tryToPromoteExts()
5816 TPT.rollback(LastKnownGood); in tryToPromoteExts()
6241 TypePromotionTransaction TPT(RemovedInsts); in optimizeExt() local
6243 TPT.getRestorationPoint(); in optimizeExt()
6248 bool HasPromoted = tryToPromoteExts(TPT, Exts, SpeculativelyMovedExts); in optimizeExt()
6258 TPT.commit(); in optimizeExt()
6269 HasPromoted, TPT, SpeculativelyMovedExts)) in optimizeExt()
6272 TPT.rollback(LastKnownGood); in optimizeExt()
6283 bool HasPromoted, TypePromotionTransaction &TPT, in performAddressTypePromotion() argument
6303 TPT.commit(); in performAddressTypePromotion()
6328 TypePromotionTransaction TPT(RemovedInsts); in performAddressTypePromotion() local
6332 bool HasPromoted = tryToPromoteExts(TPT, Exts, Chains); in performAddressTypePromotion()
6333 TPT.commit(); in performAddressTypePromotion()