Home
last modified time | relevance | path

Searched refs:TrueWeight (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()
681 HotWeight = TrueWeight; 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()
8366 uint64_t NewTrueWeight = TrueWeight; in splitBranchCondition()
8372 NewTrueWeight = TrueWeight; in splitBranchCondition()
8397 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
8398 if (Br1->extractProfMetadata(TrueWeight, 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()
478 : TrueWeight; in updateLatchBranchWeightsForRemainderLoop()
H A DSimplifyCFG.cpp865 static void setBranchWeights(Instruction *I, uint32_t TrueWeight, in setBranchWeights() argument
871 if (TrueWeight || FalseWeight) in setBranchWeights()
873 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights()
4299 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect()
4300 setBranchWeights(NewBI, TrueWeight, FalseWeight); in SimplifyTerminatorOnSelect()
4350 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local
4356 TrueWeight = in SimplifySwitchOnSelect()
5216 uint64_t TrueWeight = 0; in TurnSwitchRangeIntoICmp() local
5220 TrueWeight += Weights[I]; in TurnSwitchRangeIntoICmp()
5225 TrueWeight /= 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.cpp37 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, 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.cpp571 ConstantInt *TrueWeight = mdconst::extract<ConstantInt>(MD->getOperand(1)); in checkMDProf() local
573 if (!TrueWeight || !FalseWeight) in checkMDProf()
575 uint64_t TrueWt = TrueWeight->getValue().getZExtValue(); in checkMDProf()