Searched refs:TrueWeight (Results 1 – 8 of 8) sorted by relevance
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | LoopUnrollPeel.cpp | 582 uint64_t TrueWeight, FalseWeight; in peelLoop() local 584 if (LatchBR->extractProfMetadata(TrueWeight, FalseWeight)) { in peelLoop() 585 ExitWeight = HeaderIdx ? TrueWeight : FalseWeight; in peelLoop() 588 CurHeaderWeight = TrueWeight + FalseWeight; in peelLoop()
|
| H A D | SimplifyCFG.cpp | 797 if (TrueWeight || FalseWeight) in setBranchWeights() 799 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights() 3415 uint32_t TrueWeight, in SimplifyTerminatorOnSelect() argument 3449 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect() 3450 setBranchWeights(NewBI, TrueWeight, FalseWeight); in SimplifyTerminatorOnSelect() 3489 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local 3495 TrueWeight = in SimplifySwitchOnSelect() 4351 uint64_t TrueWeight = 0; in TurnSwitchRangeIntoICmp() local 4355 TrueWeight += Weights[I]; in TurnSwitchRangeIntoICmp() 4360 TrueWeight /= 2; in TurnSwitchRangeIntoICmp() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/PowerPC/ |
| H A D | PPCCTRLoops.cpp | 550 uint64_t TrueWeight = 0, FalseWeight = 0; in convertToCTRLoop() local 552 !BI->extractProfMetadata(TrueWeight, FalseWeight)) in convertToCTRLoop() 558 if (( TrueIsExit && FalseWeight < TrueWeight) || in convertToCTRLoop() 559 (!TrueIsExit && FalseWeight > TrueWeight)) in convertToCTRLoop()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 38 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() argument 40 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 5683 uint64_t TrueWeight, FalseWeight; in isFormingBranchFromSelectProfitable() local 5684 if (SI->extractProfMetadata(TrueWeight, FalseWeight)) { in isFormingBranchFromSelectProfitable() 5685 uint64_t Max = std::max(TrueWeight, FalseWeight); in isFormingBranchFromSelectProfitable() 5686 uint64_t Sum = TrueWeight + FalseWeight; in isFormingBranchFromSelectProfitable() 7020 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local 7021 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition() 7022 uint64_t NewTrueWeight = TrueWeight; in splitBranchCondition() 7028 NewTrueWeight = TrueWeight; in splitBranchCondition() 7053 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local 7054 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 211 uint64_t TrueWeight, FalseWeight; in updatePredecessorProfileMetadata() local 212 if (!CondBr->extractProfMetadata(TrueWeight, FalseWeight)) in updatePredecessorProfileMetadata() 242 TrueWeight, TrueWeight + FalseWeight) in updatePredecessorProfileMetadata() 244 FalseWeight, TrueWeight + FalseWeight)); in updatePredecessorProfileMetadata()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/ |
| H A D | ControlHeightReduction.cpp | 599 ConstantInt *TrueWeight = mdconst::extract<ConstantInt>(MD->getOperand(1)); in checkMDProf() local 601 if (!TrueWeight || !FalseWeight) in checkMDProf() 603 uint64_t TrueWt = TrueWeight->getValue().getZExtValue(); in checkMDProf()
|