Home
last modified time | relevance | path

Searched refs:TrueWeight (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSelectOptimize.cpp908 uint64_t TrueWeight, FalseWeight, TotalWeight; in hasExpensiveColdOperand() local
911 TotalWeight = TrueWeight + FalseWeight; in hasExpensiveColdOperand()
928 if (TrueWeight < FalseWeight) { in hasExpensiveColdOperand()
933 HotWeight = TrueWeight; 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 DCodeGenPrepare.cpp6880 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
8746 uint64_t NewTrueWeight = TrueWeight; in splitBranchCondition()
8747 uint64_t NewFalseWeight = TrueWeight + 2 * FalseWeight; in splitBranchCondition()
8753 NewTrueWeight = TrueWeight; in splitBranchCondition()
8779 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
8781 uint64_t NewTrueWeight = 2 * TrueWeight + FalseWeight; in splitBranchCondition()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp154 uint64_t TrueWeight, FalseWeight; in updatePredecessorProfileMetadata() local
155 if (!extractBranchWeights(*CondBr, TrueWeight, FalseWeight)) in updatePredecessorProfileMetadata()
158 if (TrueWeight + FalseWeight == 0) in updatePredecessorProfileMetadata()
200 TrueWeight, TrueWeight + FalseWeight) in updatePredecessorProfileMetadata()
2784 uint64_t TrueWeight = 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()
2801 TrueWeight = 1; in unfoldSelectInstr()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMDBuilder.h62 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp379 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 DMDBuilder.cpp37 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() argument
39 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp874 static void setBranchWeights(Instruction *I, uint32_t TrueWeight, in setBranchWeights() argument
880 if (TrueWeight || FalseWeight) in setBranchWeights()
882 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights()
4591 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect()
4592 setBranchWeights(NewBI, TrueWeight, FalseWeight); in SimplifyTerminatorOnSelect()
4642 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local
4648 TrueWeight = in SimplifySwitchOnSelect()
5527 uint64_t TrueWeight = 0; in TurnSwitchRangeIntoICmp() local
5531 TrueWeight += Weights[I]; in TurnSwitchRangeIntoICmp()
5536 TrueWeight /= 2; in TurnSwitchRangeIntoICmp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp583 uint64_t TrueWeight; 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()
596 TrueProb = BranchProbability::getBranchProbability(TrueWeight, SumWeight); in extractBranchProbabilities()