/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | VectorCombine.cpp | 152 int NewCost = TTI.getMemoryOpCost(Instruction::Load, MinVecTy, Alignment, AS); in vectorizeLoadInsert() local 156 if (OldCost < NewCost) in vectorizeLoadInsert() 271 int OldCost, NewCost; in isExtractExtractCheap() local 280 NewCost = VectorOpCost + CheapExtractCost + HasUseTax * CheapExtractCost; in isExtractExtractCheap() 285 NewCost = VectorOpCost + CheapExtractCost + in isExtractExtractCheap() 302 NewCost += in isExtractExtractCheap() 309 return OldCost < NewCost; in isExtractExtractCheap() 574 int NewCost = ScalarOpCost + InsertCost + in scalarizeBinopOrCmp() local 579 if (OldCost < NewCost) in scalarizeBinopOrCmp() 670 int NewCost = TTI.getCmpSelInstrCost(CmpOpcode, X->getType()); in foldExtractedCmps() local [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 4224 Cost NewCost; in SolveRecurse() local 4247 NewCost = CurCost; in SolveRecurse() 4249 NewCost.RateFormula(TTI, F, NewRegs, VisitedRegs, L, LU.Offsets, SE, DT, in SolveRecurse() 4251 if (NewCost < SolutionCost) { in SolveRecurse() 4254 SolveRecurse(Solution, SolutionCost, Workspace, NewCost, in SolveRecurse() 4259 DEBUG(dbgs() << "New best at "; NewCost.print(dbgs()); in SolveRecurse() 4265 SolutionCost = NewCost; in SolveRecurse()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 4975 Cost NewCost(L, SE, TTI); in SolveRecurse() local 5002 NewCost = CurCost; in SolveRecurse() 5004 NewCost.RateFormula(F, NewRegs, VisitedRegs, LU); in SolveRecurse() 5005 if (NewCost.isLess(SolutionCost)) { in SolveRecurse() 5008 SolveRecurse(Solution, SolutionCost, Workspace, NewCost, in SolveRecurse() 5013 LLVM_DEBUG(dbgs() << "New best at "; NewCost.print(dbgs()); in SolveRecurse() 5019 SolutionCost = NewCost; in SolveRecurse()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 4921 Cost NewCost(L, SE, TTI); in SolveRecurse() local 4943 NewCost = CurCost; in SolveRecurse() 4945 NewCost.RateFormula(F, NewRegs, VisitedRegs, LU); in SolveRecurse() 4946 if (NewCost.isLess(SolutionCost)) { in SolveRecurse() 4949 SolveRecurse(Solution, SolutionCost, Workspace, NewCost, in SolveRecurse() 4954 LLVM_DEBUG(dbgs() << "New best at "; NewCost.print(dbgs()); in SolveRecurse() 4960 SolutionCost = NewCost; in SolveRecurse()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 2657 bool isPromotionProfitable(unsigned NewCost, unsigned OldCost, 3118 unsigned NewCost, unsigned OldCost, Value *PromotedOperand) const { in isPromotionProfitable() argument 3119 DEBUG(dbgs() << "OldCost: " << OldCost << "\tNewCost: " << NewCost << '\n'); in isPromotionProfitable() 3123 if (NewCost > OldCost) in isPromotionProfitable() 3125 if (NewCost < OldCost) in isPromotionProfitable()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 2940 bool isPromotionProfitable(unsigned NewCost, unsigned OldCost, 4124 unsigned NewCost, unsigned OldCost, Value *PromotedOperand) const { in isPromotionProfitable() argument 4125 LLVM_DEBUG(dbgs() << "OldCost: " << OldCost << "\tNewCost: " << NewCost in isPromotionProfitable() 4130 if (NewCost > OldCost) in isPromotionProfitable() 4132 if (NewCost < OldCost) in isPromotionProfitable()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 3087 bool isPromotionProfitable(unsigned NewCost, unsigned OldCost, 4272 unsigned NewCost, unsigned OldCost, Value *PromotedOperand) const { in isPromotionProfitable() argument 4273 LLVM_DEBUG(dbgs() << "OldCost: " << OldCost << "\tNewCost: " << NewCost in isPromotionProfitable() 4278 if (NewCost > OldCost) in isPromotionProfitable() 4280 if (NewCost < OldCost) in isPromotionProfitable()
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 522 unsigned NewCost = ConstantMaterializationCost(NewMulConstVal); in canExtractShiftFromMul() local 523 return NewCost < OldCost; in canExtractShiftFromMul()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 542 unsigned NewCost = ConstantMaterializationCost(NewMulConstVal, Subtarget); in canExtractShiftFromMul() local 543 return NewCost < OldCost; in canExtractShiftFromMul()
|
/external/llvm-project/llvm/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 562 unsigned NewCost = ConstantMaterializationCost(NewMulConstVal, Subtarget); in canExtractShiftFromMul() local 563 return NewCost < OldCost; in canExtractShiftFromMul()
|