/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SelectOptimize.cpp | 908 uint64_t TrueWeight, FalseWeight, TotalWeight; in hasExpensiveColdOperand() local 911 TotalWeight = TrueWeight + FalseWeight; in hasExpensiveColdOperand() 928 if (TrueWeight < FalseWeight) { in hasExpensiveColdOperand() 930 HotWeight = FalseWeight; in hasExpensiveColdOperand() 1028 uint64_t TrueWeight, FalseWeight; in isSelectHighlyPredictable() local 1029 if (extractBranchWeights(SI, TrueWeight, FalseWeight)) { in isSelectHighlyPredictable() 1030 uint64_t Max = std::max(TrueWeight, FalseWeight); in isSelectHighlyPredictable() 1031 uint64_t Sum = TrueWeight + FalseWeight; in isSelectHighlyPredictable() 1238 uint64_t TrueWeight, FalseWeight; in getPredictedPathCost() local 1239 if (extractBranchWeights(SI, TrueWeight, FalseWeight)) { in getPredictedPathCost() [all …]
|
H A D | CodeGenPrepare.cpp | 6880 uint64_t TrueWeight, FalseWeight; in isFormingBranchFromSelectProfitable() local 6881 if (extractBranchWeights(*SI, TrueWeight, FalseWeight)) { in isFormingBranchFromSelectProfitable() 6882 uint64_t Max = std::max(TrueWeight, FalseWeight); in isFormingBranchFromSelectProfitable() 6883 uint64_t Sum = TrueWeight + FalseWeight; in isFormingBranchFromSelectProfitable() 8744 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local 8747 uint64_t NewFalseWeight = TrueWeight + 2 * FalseWeight; in splitBranchCondition() 8754 NewFalseWeight = 2 * FalseWeight; in splitBranchCondition() 8779 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local 8781 uint64_t NewTrueWeight = 2 * TrueWeight + FalseWeight; in splitBranchCondition() 8782 uint64_t NewFalseWeight = FalseWeight; in splitBranchCondition() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | JumpThreading.cpp | 154 uint64_t TrueWeight, FalseWeight; in updatePredecessorProfileMetadata() local 155 if (!extractBranchWeights(*CondBr, TrueWeight, FalseWeight)) in updatePredecessorProfileMetadata() 158 if (TrueWeight + FalseWeight == 0) in updatePredecessorProfileMetadata() 202 FalseWeight, TrueWeight + FalseWeight)); in updatePredecessorProfileMetadata() 2785 uint64_t FalseWeight = 1; in unfoldSelectInstr() local 2788 (TrueWeight + FalseWeight) != 0) { in unfoldSelectInstr() 2791 TrueWeight, TrueWeight + FalseWeight)); in unfoldSelectInstr() 2793 FalseWeight, TrueWeight + FalseWeight)); in unfoldSelectInstr() 2800 if ((TrueWeight + FalseWeight) == 0) { in unfoldSelectInstr() 2802 FalseWeight = 1; in unfoldSelectInstr() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | MDBuilder.h | 62 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetTransformInfo.cpp | 379 uint64_t TrueWeight = 0, FalseWeight = 0; in isHardwareLoopProfitable() local 381 !extractBranchWeights(*BI, TrueWeight, FalseWeight)) in isHardwareLoopProfitable() 387 if (( TrueIsExit && FalseWeight < TrueWeight) || in isHardwareLoopProfitable() 388 (!TrueIsExit && FalseWeight > TrueWeight)) in isHardwareLoopProfitable()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | MDBuilder.cpp | 38 uint32_t FalseWeight) { in createBranchWeights() argument 39 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyCFG.cpp | 875 uint32_t FalseWeight) { in setBranchWeights() argument 880 if (TrueWeight || FalseWeight) in setBranchWeights() 882 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights() 4591 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect() 4642 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local 4650 FalseWeight = in SimplifySwitchOnSelect() 4657 FalseWeight); in SimplifySwitchOnSelect() 5528 uint64_t FalseWeight = 0; in TurnSwitchRangeIntoICmp() local 5533 FalseWeight += Weights[I]; in TurnSwitchRangeIntoICmp() 5537 FalseWeight /= 2; in TurnSwitchRangeIntoICmp() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | ControlHeightReduction.cpp | 584 uint64_t FalseWeight; in extractBranchProbabilities() local 585 if (!extractBranchWeights(*I, TrueWeight, FalseWeight)) in extractBranchProbabilities() 587 uint64_t SumWeight = TrueWeight + FalseWeight; in extractBranchProbabilities() 589 assert(SumWeight >= TrueWeight && SumWeight >= FalseWeight && in extractBranchProbabilities() 597 FalseProb = BranchProbability::getBranchProbability(FalseWeight, SumWeight); in extractBranchProbabilities()
|