| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | SelectOptimize.cpp | 657 uint64_t TrueWeight, FalseWeight, TotalWeight; in hasExpensiveColdOperand() local 660 TotalWeight = TrueWeight + FalseWeight; in hasExpensiveColdOperand() 676 if (TrueWeight < FalseWeight) { in hasExpensiveColdOperand() 678 HotWeight = FalseWeight; 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 D | CodeGenPrepare.cpp | 6622 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() 8373 NewFalseWeight = 2 * FalseWeight; in splitBranchCondition() 8397 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local 8398 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition() 8400 uint64_t NewFalseWeight = FalseWeight; in splitBranchCondition() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | LoopPeel.cpp | 534 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 D | LoopUnrollRuntime.cpp | 471 uint64_t TrueWeight, FalseWeight; in updateLatchBranchWeightsForRemainderLoop() local 474 if (!LatchBR->extractProfMetadata(TrueWeight, FalseWeight)) in updateLatchBranchWeightsForRemainderLoop() 477 ? FalseWeight in updateLatchBranchWeightsForRemainderLoop()
|
| H A D | SimplifyCFG.cpp | 866 uint32_t FalseWeight) { in setBranchWeights() argument 871 if (TrueWeight || FalseWeight) in setBranchWeights() 873 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights() 4299 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect() 4350 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local 4358 FalseWeight = in SimplifySwitchOnSelect() 4365 FalseWeight); in SimplifySwitchOnSelect() 5217 uint64_t FalseWeight = 0; in TurnSwitchRangeIntoICmp() local 5222 FalseWeight += Weights[I]; in TurnSwitchRangeIntoICmp() 5226 FalseWeight /= 2; in TurnSwitchRangeIntoICmp() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 38 uint32_t FalseWeight) { in createBranchWeights() argument 39 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 758 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 D | JumpThreading.cpp | 218 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 D | ControlHeightReduction.cpp | 572 ConstantInt *FalseWeight = mdconst::extract<ConstantInt>(MD->getOperand(2)); in checkMDProf() local 573 if (!TrueWeight || !FalseWeight) in checkMDProf() 576 uint64_t FalseWt = FalseWeight->getValue().getZExtValue(); in checkMDProf()
|