Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopPeel.cpp464 uint64_t TrueWeight, FalseWeight; in initBranchWeights() local
465 if (!LatchBR->extractProfMetadata(TrueWeight, FalseWeight)) in initBranchWeights()
468 ExitWeight = HeaderIdx ? TrueWeight : FalseWeight; in initBranchWeights()
469 FallThroughWeight = HeaderIdx ? FalseWeight : TrueWeight; in initBranchWeights()
H A DLoopUnrollRuntime.cpp523 uint64_t TrueWeight, FalseWeight; in updateLatchBranchWeightsForRemainderLoop() local
526 if (LatchBR->extractProfMetadata(TrueWeight, FalseWeight)) { in updateLatchBranchWeightsForRemainderLoop()
529 : TrueWeight; in updateLatchBranchWeightsForRemainderLoop()
H A DSimplifyCFG.cpp825 static void setBranchWeights(Instruction *I, uint32_t TrueWeight, in setBranchWeights() argument
831 if (TrueWeight || FalseWeight) in setBranchWeights()
833 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights()
3917 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect()
3918 setBranchWeights(NewBI, TrueWeight, FalseWeight); in SimplifyTerminatorOnSelect()
3968 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local
3974 TrueWeight = in SimplifySwitchOnSelect()
4834 uint64_t TrueWeight = 0; in TurnSwitchRangeIntoICmp() local
4838 TrueWeight += Weights[I]; in TurnSwitchRangeIntoICmp()
4843 TrueWeight /= 2; in TurnSwitchRangeIntoICmp()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DMDBuilder.h61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
/freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp753 uint64_t TrueWeight = 0, FalseWeight = 0; in isHardwareLoopProfitable() local
755 !BI->extractProfMetadata(TrueWeight, FalseWeight)) in isHardwareLoopProfitable()
761 if (( TrueIsExit && FalseWeight < TrueWeight) || in isHardwareLoopProfitable()
762 (!TrueIsExit && FalseWeight > TrueWeight)) in isHardwareLoopProfitable()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp6607 uint64_t TrueWeight, FalseWeight; in isFormingBranchFromSelectProfitable() local
6608 if (SI->extractProfMetadata(TrueWeight, FalseWeight)) { in isFormingBranchFromSelectProfitable()
6609 uint64_t Max = std::max(TrueWeight, FalseWeight); in isFormingBranchFromSelectProfitable()
6610 uint64_t Sum = TrueWeight + FalseWeight; in isFormingBranchFromSelectProfitable()
8255 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
8256 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition()
8257 uint64_t NewTrueWeight = TrueWeight; in splitBranchCondition()
8263 NewTrueWeight = TrueWeight; in splitBranchCondition()
8288 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
8289 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp227 uint64_t TrueWeight, FalseWeight; in updatePredecessorProfileMetadata() local
228 if (!CondBr->extractProfMetadata(TrueWeight, FalseWeight)) in updatePredecessorProfileMetadata()
231 if (TrueWeight + FalseWeight == 0) in updatePredecessorProfileMetadata()
273 TrueWeight, TrueWeight + FalseWeight) in updatePredecessorProfileMetadata()
275 FalseWeight, TrueWeight + FalseWeight)); in updatePredecessorProfileMetadata()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp611 ConstantInt *TrueWeight = mdconst::extract<ConstantInt>(MD->getOperand(1)); in checkMDProf() local
613 if (!TrueWeight || !FalseWeight) in checkMDProf()
615 uint64_t TrueWt = TrueWeight->getValue().getZExtValue(); in checkMDProf()