Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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.cpp263 uint32_t TrueWeight, uint32_t FalseWeight);
831 static void setBranchWeights(Instruction *I, uint32_t TrueWeight, in setBranchWeights() argument
837 if (TrueWeight || FalseWeight) in setBranchWeights()
839 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights()
3929 uint32_t TrueWeight, in SimplifyTerminatorOnSelect() argument
3970 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect()
3971 setBranchWeights(NewBI, TrueWeight, FalseWeight); in SimplifyTerminatorOnSelect()
4021 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local
4027 TrueWeight = in SimplifySwitchOnSelect()
4035 return SimplifyTerminatorOnSelect(SI, Condition, TrueBB, FalseBB, TrueWeight, in SimplifySwitchOnSelect()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DMDBuilder.h61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DMDBuilder.cpp37 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() argument
39 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp750 uint64_t TrueWeight = 0, FalseWeight = 0; in isHardwareLoopProfitable() local
752 !BI->extractProfMetadata(TrueWeight, FalseWeight)) in isHardwareLoopProfitable()
758 if (( TrueIsExit && FalseWeight < TrueWeight) || in isHardwareLoopProfitable()
759 (!TrueIsExit && FalseWeight > TrueWeight)) in isHardwareLoopProfitable()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp6585 uint64_t TrueWeight, FalseWeight; in isFormingBranchFromSelectProfitable() local
6586 if (SI->extractProfMetadata(TrueWeight, FalseWeight)) { in isFormingBranchFromSelectProfitable()
6587 uint64_t Max = std::max(TrueWeight, FalseWeight); in isFormingBranchFromSelectProfitable()
6588 uint64_t Sum = TrueWeight + FalseWeight; in isFormingBranchFromSelectProfitable()
8223 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
8224 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition()
8225 uint64_t NewTrueWeight = TrueWeight; in splitBranchCondition()
8226 uint64_t NewFalseWeight = TrueWeight + 2 * FalseWeight; in splitBranchCondition()
8229 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
8231 NewTrueWeight = TrueWeight; in splitBranchCondition()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()