Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSelectOptimize.cpp657 uint64_t TrueWeight, FalseWeight, TotalWeight; in hasExpensiveColdOperand() local
660 TotalWeight = TrueWeight + FalseWeight; in hasExpensiveColdOperand()
676 if (TrueWeight < FalseWeight) { in hasExpensiveColdOperand()
678 HotWeight = FalseWeight; in hasExpensiveColdOperand()
752 uint64_t TrueWeight, FalseWeight; in isSelectHighlyPredictable() local
753 if (SI->extractProfMetadata(TrueWeight, FalseWeight)) { in isSelectHighlyPredictable()
754 uint64_t Max = std::max(TrueWeight, FalseWeight); in isSelectHighlyPredictable()
755 uint64_t Sum = TrueWeight + FalseWeight; in isSelectHighlyPredictable()
961 uint64_t TrueWeight, FalseWeight; in getPredictedPathCost() local
962 if (SI->extractProfMetadata(TrueWeight, FalseWeight)) { in getPredictedPathCost()
[all …]
H A DCodeGenPrepare.cpp6622 uint64_t TrueWeight, FalseWeight; in isFormingBranchFromSelectProfitable() local
6623 if (SI->extractProfMetadata(TrueWeight, FalseWeight)) { in isFormingBranchFromSelectProfitable()
6624 uint64_t Max = std::max(TrueWeight, FalseWeight); in isFormingBranchFromSelectProfitable()
6625 uint64_t Sum = TrueWeight + FalseWeight; in isFormingBranchFromSelectProfitable()
8364 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
8365 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition()
8373 NewFalseWeight = 2 * FalseWeight; in splitBranchCondition()
8397 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
8398 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition()
8400 uint64_t NewFalseWeight = FalseWeight; in splitBranchCondition()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLoopPeel.cpp534 uint64_t TrueWeight, FalseWeight; in initBranchWeights() local
535 if (!LatchBR->extractProfMetadata(TrueWeight, FalseWeight)) in initBranchWeights()
538 ExitWeight = HeaderIdx ? TrueWeight : FalseWeight; in initBranchWeights()
539 FallThroughWeight = HeaderIdx ? FalseWeight : TrueWeight; in initBranchWeights()
H A DLoopUnrollRuntime.cpp471 uint64_t TrueWeight, FalseWeight; in updateLatchBranchWeightsForRemainderLoop() local
474 if (!LatchBR->extractProfMetadata(TrueWeight, FalseWeight)) in updateLatchBranchWeightsForRemainderLoop()
477 ? FalseWeight in updateLatchBranchWeightsForRemainderLoop()
H A DSimplifyCFG.cpp866 uint32_t FalseWeight) { in setBranchWeights() argument
871 if (TrueWeight || FalseWeight) in setBranchWeights()
873 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights()
4299 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect()
4350 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local
4358 FalseWeight = in SimplifySwitchOnSelect()
4365 FalseWeight); in SimplifySwitchOnSelect()
5217 uint64_t FalseWeight = 0; in TurnSwitchRangeIntoICmp() local
5222 FalseWeight += Weights[I]; in TurnSwitchRangeIntoICmp()
5226 FalseWeight /= 2; in TurnSwitchRangeIntoICmp()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DMDBuilder.h61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
/llvm-project-15.0.7/llvm/lib/IR/
H A DMDBuilder.cpp38 uint32_t FalseWeight) { in createBranchWeights() argument
39 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp758 uint64_t TrueWeight = 0, FalseWeight = 0; in isHardwareLoopProfitable() local
760 !BI->extractProfMetadata(TrueWeight, FalseWeight)) in isHardwareLoopProfitable()
766 if (( TrueIsExit && FalseWeight < TrueWeight) || in isHardwareLoopProfitable()
767 (!TrueIsExit && FalseWeight > TrueWeight)) in isHardwareLoopProfitable()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp218 uint64_t TrueWeight, FalseWeight; in updatePredecessorProfileMetadata() local
219 if (!CondBr->extractProfMetadata(TrueWeight, FalseWeight)) in updatePredecessorProfileMetadata()
222 if (TrueWeight + FalseWeight == 0) in updatePredecessorProfileMetadata()
264 TrueWeight, TrueWeight + FalseWeight) in updatePredecessorProfileMetadata()
266 FalseWeight, TrueWeight + FalseWeight)); in updatePredecessorProfileMetadata()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp572 ConstantInt *FalseWeight = mdconst::extract<ConstantInt>(MD->getOperand(2)); in checkMDProf() local
573 if (!TrueWeight || !FalseWeight) in checkMDProf()
576 uint64_t FalseWt = FalseWeight->getValue().getZExtValue(); in checkMDProf()