Home
last modified time | relevance | path

Searched refs:TrueCount (Results 1 – 10 of 10) sorted by relevance

/external/clang/lib/CodeGen/
DCodeGenPGO.cpp537 uint64_t TrueCount = setCount(PGO.getRegionCount(E)); in VisitAbstractConditionalOperator() local
538 CountMap[E->getTrueExpr()] = TrueCount; in VisitAbstractConditionalOperator()
542 uint64_t FalseCount = setCount(ParentCount - TrueCount); in VisitAbstractConditionalOperator()
847 llvm::MDNode *CodeGenFunction::createProfileWeights(uint64_t TrueCount, in createProfileWeights() argument
850 if (!TrueCount && !FalseCount) in createProfileWeights()
854 uint64_t Scale = calculateWeightScale(std::max(TrueCount, FalseCount)); in createProfileWeights()
857 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights()
DCodeGenFunction.cpp1189 uint64_t TrueCount) { in EmitBranchOnBoolExpr() argument
1204 TrueCount); in EmitBranchOnBoolExpr()
1213 TrueCount); in EmitBranchOnBoolExpr()
1235 EmitBranchOnBoolExpr(CondBOp->getRHS(), TrueBlock, FalseBlock, TrueCount); in EmitBranchOnBoolExpr()
1250 TrueCount); in EmitBranchOnBoolExpr()
1259 TrueCount); in EmitBranchOnBoolExpr()
1270 uint64_t RHSCount = TrueCount - LHSCount; in EmitBranchOnBoolExpr()
1296 uint64_t FalseCount = getCurrentProfileCount() - TrueCount; in EmitBranchOnBoolExpr()
1318 if (TrueCount) { in EmitBranchOnBoolExpr()
1321 LHSScaledTrueCount = TrueCount * LHSRatio; in EmitBranchOnBoolExpr()
[all …]
DCoverageMappingGen.cpp889 Counter TrueCount = getRegionCounter(E); in VisitAbstractConditionalOperator() local
895 propagateCounts(TrueCount, E->getTrueExpr()); in VisitAbstractConditionalOperator()
898 propagateCounts(subtractCounters(ParentCount, TrueCount), in VisitAbstractConditionalOperator()
DCodeGenFunction.h971 llvm::MDNode *createProfileWeights(uint64_t TrueCount, uint64_t FalseCount);
3185 llvm::BasicBlock *FalseBlock, uint64_t TrueCount);
DCGStmtOpenMP.cpp1458 llvm::BasicBlock *FalseBlock, uint64_t TrueCount) { in emitPreCond() argument
1471 CGF.EmitBranchOnBoolExpr(Cond, TrueBlock, FalseBlock, TrueCount); in emitPreCond()
/external/llvm-project/clang/lib/CodeGen/
DCodeGenPGO.cpp686 uint64_t TrueCount = setCount(PGO.getRegionCount(E)); in VisitAbstractConditionalOperator() local
687 CountMap[E->getTrueExpr()] = TrueCount; in VisitAbstractConditionalOperator()
691 uint64_t FalseCount = setCount(ParentCount - TrueCount); in VisitAbstractConditionalOperator()
1040 llvm::MDNode *CodeGenFunction::createProfileWeights(uint64_t TrueCount, in createProfileWeights() argument
1043 if (!TrueCount && !FalseCount) in createProfileWeights()
1047 uint64_t Scale = calculateWeightScale(std::max(TrueCount, FalseCount)); in createProfileWeights()
1050 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights()
DCodeGenFunction.cpp1513 uint64_t TrueCount, in EmitBranchOnBoolExpr() argument
1529 TrueCount, LH); in EmitBranchOnBoolExpr()
1538 TrueCount, LH); in EmitBranchOnBoolExpr()
1564 EmitBranchOnBoolExpr(CondBOp->getRHS(), TrueBlock, FalseBlock, TrueCount, in EmitBranchOnBoolExpr()
1580 TrueCount, LH); in EmitBranchOnBoolExpr()
1589 TrueCount, LH); in EmitBranchOnBoolExpr()
1600 uint64_t RHSCount = TrueCount - LHSCount; in EmitBranchOnBoolExpr()
1631 uint64_t FalseCount = getCurrentProfileCount() - TrueCount; in EmitBranchOnBoolExpr()
1657 if (TrueCount) { in EmitBranchOnBoolExpr()
1660 LHSScaledTrueCount = TrueCount * LHSRatio; in EmitBranchOnBoolExpr()
[all …]
DCoverageMappingGen.cpp1327 Counter TrueCount = getRegionCounter(E); in VisitAbstractConditionalOperator() local
1336 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), TrueCount); in VisitAbstractConditionalOperator()
1339 propagateCounts(TrueCount, E->getTrueExpr()); in VisitAbstractConditionalOperator()
1343 propagateCounts(subtractCounters(ParentCount, TrueCount), in VisitAbstractConditionalOperator()
DCodeGenFunction.h1428 llvm::MDNode *createProfileWeights(uint64_t TrueCount,
4403 llvm::BasicBlock *FalseBlock, uint64_t TrueCount,
DCGStmtOpenMP.cpp2083 llvm::BasicBlock *FalseBlock, uint64_t TrueCount) { in emitPreCond() argument
2115 CGF.EmitBranchOnBoolExpr(Cond, TrueBlock, FalseBlock, TrueCount); in emitPreCond()