Home
last modified time | relevance | path

Searched refs:DuplicationCost (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDFAJumpThreading.cpp843 unsigned DuplicationCost = 0; in isLegalAndProfitableToTransform() local
854 DuplicationCost = *Metrics.NumInsts.getValue() / CondBranches; in isLegalAndProfitableToTransform()
862 DuplicationCost = *Metrics.NumInsts.getValue() / JumpTableSize; in isLegalAndProfitableToTransform()
867 << " is: " << DuplicationCost << "\n\n"); in isLegalAndProfitableToTransform()
869 if (DuplicationCost > CostThreshold) { in isLegalAndProfitableToTransform()
875 << ore::NV("Cost", DuplicationCost) in isLegalAndProfitableToTransform()
H A DJumpThreading.cpp2603 unsigned DuplicationCost = getJumpThreadDuplicationCost( in duplicateCondBranchOnPHIIntoPred() local
2605 if (DuplicationCost > BBDupThreshold) { in duplicateCondBranchOnPHIIntoPred()
2607 << "' - Cost is too high: " << DuplicationCost << "\n"); in duplicateCondBranchOnPHIIntoPred()
2628 << DuplicationCost << " block is:" << *BB << "\n"); in duplicateCondBranchOnPHIIntoPred()