Searched refs:TrueWeight (Results 1 – 6 of 6) sorted by relevance
/external/llvm/lib/IR/ |
D | MDBuilder.cpp | 37 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() argument 39 uint32_t Weights[] = {TrueWeight, FalseWeight}; in createBranchWeights()
|
/external/llvm/include/llvm/IR/ |
D | MDBuilder.h | 58 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 4684 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local 4685 if (extractBranchMetadata(Br1, TrueWeight, FalseWeight)) { in splitBranchCondition() 4686 uint64_t NewTrueWeight = TrueWeight; in splitBranchCondition() 4687 uint64_t NewFalseWeight = TrueWeight + 2 * FalseWeight; in splitBranchCondition() 4690 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 4692 NewTrueWeight = TrueWeight; in splitBranchCondition() 4696 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 4717 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local 4718 if (extractBranchMetadata(Br1, TrueWeight, FalseWeight)) { in splitBranchCondition() 4719 uint64_t NewTrueWeight = 2 * TrueWeight + FalseWeight; in splitBranchCondition() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 2568 uint32_t TrueWeight, in SimplifyTerminatorOnSelect() argument 2602 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect() 2605 createBranchWeights(TrueWeight, FalseWeight)); in SimplifyTerminatorOnSelect() 2644 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local 2650 TrueWeight = (uint32_t)Weights[SI->findCaseValue(TrueVal). in SimplifySwitchOnSelect() 2659 TrueWeight, FalseWeight); in SimplifySwitchOnSelect() 3204 uint64_t TrueWeight = 0; in TurnSwitchRangeIntoICmp() local 3208 TrueWeight += Weights[I]; in TurnSwitchRangeIntoICmp() 3212 while (TrueWeight > UINT32_MAX || FalseWeight > UINT32_MAX) { in TurnSwitchRangeIntoICmp() 3213 TrueWeight /= 2; in TurnSwitchRangeIntoICmp() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 214 TrueWeight(trueweight), FalseWeight(falseweight) { } in CC() 231 uint32_t TrueWeight, FalseWeight; member
|
D | SelectionDAGBuilder.cpp | 1711 addSuccessorWithWeight(SwitchBB, CB.TrueBB, CB.TrueWeight); in visitSwitchCase()
|