Home
last modified time | relevance | path

Searched refs:FalseWeight (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()
528 ? FalseWeight in updateLatchBranchWeightsForRemainderLoop()
H A DSimplifyCFG.cpp826 uint32_t FalseWeight) { in setBranchWeights() argument
831 if (TrueWeight || FalseWeight) in setBranchWeights()
833 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights()
3917 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect()
3968 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local
3976 FalseWeight = in SimplifySwitchOnSelect()
3983 FalseWeight); in SimplifySwitchOnSelect()
4835 uint64_t FalseWeight = 0; in TurnSwitchRangeIntoICmp() local
4840 FalseWeight += Weights[I]; in TurnSwitchRangeIntoICmp()
4844 FalseWeight /= 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.cpp38 uint32_t FalseWeight) { 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()
8264 NewFalseWeight = 2 * FalseWeight; in splitBranchCondition()
8288 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
8289 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition()
8291 uint64_t NewFalseWeight = 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.cpp612 ConstantInt *FalseWeight = mdconst::extract<ConstantInt>(MD->getOperand(2)); in checkMDProf() local
613 if (!TrueWeight || !FalseWeight) in checkMDProf()
616 uint64_t FalseWt = FalseWeight->getValue().getZExtValue(); in checkMDProf()