Home
last modified time | relevance | path

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

/external/clang/lib/CodeGen/
DCodeGenPGO.cpp531 uint64_t TrueCount = setCount(PGO.getRegionCount(E)); in VisitAbstractConditionalOperator() local
532 CountMap[E->getTrueExpr()] = TrueCount; in VisitAbstractConditionalOperator()
536 uint64_t FalseCount = setCount(ParentCount - TrueCount); in VisitAbstractConditionalOperator()
794 llvm::MDNode *CodeGenFunction::createProfileWeights(uint64_t TrueCount, in createProfileWeights() argument
797 if (!TrueCount && !FalseCount) in createProfileWeights()
801 uint64_t Scale = calculateWeightScale(std::max(TrueCount, FalseCount)); in createProfileWeights()
804 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights()
DCodeGenFunction.cpp1117 uint64_t TrueCount) { in EmitBranchOnBoolExpr() argument
1132 TrueCount); in EmitBranchOnBoolExpr()
1141 TrueCount); in EmitBranchOnBoolExpr()
1163 EmitBranchOnBoolExpr(CondBOp->getRHS(), TrueBlock, FalseBlock, TrueCount); in EmitBranchOnBoolExpr()
1178 TrueCount); in EmitBranchOnBoolExpr()
1187 TrueCount); in EmitBranchOnBoolExpr()
1198 uint64_t RHSCount = TrueCount - LHSCount; in EmitBranchOnBoolExpr()
1224 uint64_t FalseCount = getCurrentProfileCount() - TrueCount; in EmitBranchOnBoolExpr()
1246 if (TrueCount) { in EmitBranchOnBoolExpr()
1249 LHSScaledTrueCount = TrueCount * LHSRatio; in EmitBranchOnBoolExpr()
[all …]
DCoverageMappingGen.cpp841 Counter TrueCount = getRegionCounter(E); in VisitAbstractConditionalOperator() local
847 propagateCounts(TrueCount, E->getTrueExpr()); in VisitAbstractConditionalOperator()
850 propagateCounts(subtractCounters(ParentCount, TrueCount), in VisitAbstractConditionalOperator()
DCodeGenFunction.h946 llvm::MDNode *createProfileWeights(uint64_t TrueCount, uint64_t FalseCount);
2991 llvm::BasicBlock *FalseBlock, uint64_t TrueCount);
DCGStmtOpenMP.cpp1086 llvm::BasicBlock *FalseBlock, uint64_t TrueCount) { in emitPreCond() argument
1100 CGF.EmitBranchOnBoolExpr(Cond, TrueBlock, FalseBlock, TrueCount); in emitPreCond()