Home
last modified time | relevance | path

Searched refs:FalseWeight (Results 1 – 4 of 4) sorted by relevance

/external/llvm/lib/IR/
DMDBuilder.cpp38 uint32_t FalseWeight) { in createBranchWeights() argument
39 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
/external/llvm/include/llvm/IR/
DMDBuilder.h58 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5507 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
5508 if (extractBranchMetadata(Br1, TrueWeight, FalseWeight)) { in splitBranchCondition()
5510 uint64_t NewFalseWeight = TrueWeight + 2 * FalseWeight; in splitBranchCondition()
5513 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
5516 NewFalseWeight = 2 * FalseWeight; in splitBranchCondition()
5519 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
5540 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
5541 if (extractBranchMetadata(Br1, TrueWeight, FalseWeight)) { in splitBranchCondition()
5542 uint64_t NewTrueWeight = 2 * TrueWeight + FalseWeight; in splitBranchCondition()
5543 uint64_t NewFalseWeight = FalseWeight; in splitBranchCondition()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp2895 uint32_t FalseWeight){ in SimplifyTerminatorOnSelect() argument
2928 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect()
2931 createBranchWeights(TrueWeight, FalseWeight)); in SimplifyTerminatorOnSelect()
2970 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local
2978 FalseWeight = (uint32_t)Weights[SI->findCaseValue(FalseVal). in SimplifySwitchOnSelect()
2985 TrueWeight, FalseWeight); in SimplifySwitchOnSelect()
3623 uint64_t FalseWeight = 0; in TurnSwitchRangeIntoICmp() local
3628 FalseWeight += Weights[I]; in TurnSwitchRangeIntoICmp()
3630 while (TrueWeight > UINT32_MAX || FalseWeight > UINT32_MAX) { in TurnSwitchRangeIntoICmp()
3632 FalseWeight /= 2; in TurnSwitchRangeIntoICmp()
[all …]