Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLoopUnrollPeel.cpp582 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()
DSimplifyCFG.cpp785 static void setBranchWeights(Instruction *I, uint32_t TrueWeight, in setBranchWeights() argument
791 if (TrueWeight || FalseWeight) in setBranchWeights()
793 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights()
3407 uint32_t TrueWeight, in SimplifyTerminatorOnSelect() argument
3441 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect()
3442 setBranchWeights(NewBI, TrueWeight, FalseWeight); in SimplifyTerminatorOnSelect()
3481 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local
3487 TrueWeight = in SimplifySwitchOnSelect()
3495 return SimplifyTerminatorOnSelect(SI, Condition, TrueBB, FalseBB, TrueWeight, in SimplifySwitchOnSelect()
4344 uint64_t TrueWeight = 0; in TurnSwitchRangeIntoICmp() local
[all …]
/external/llvm/lib/IR/
DMDBuilder.cpp37 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() argument
39 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp550 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()
/external/llvm/include/llvm/IR/
DMDBuilder.h58 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DMDBuilder.cpp38 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() argument
40 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DMDBuilder.h61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp4558 uint64_t TrueWeight, FalseWeight; in isFormingBranchFromSelectProfitable() local
4559 if (SI->extractProfMetadata(TrueWeight, FalseWeight)) { in isFormingBranchFromSelectProfitable()
4560 uint64_t Max = std::max(TrueWeight, FalseWeight); in isFormingBranchFromSelectProfitable()
4561 uint64_t Sum = TrueWeight + FalseWeight; in isFormingBranchFromSelectProfitable()
5592 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
5593 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition()
5594 uint64_t NewTrueWeight = TrueWeight; in splitBranchCondition()
5595 uint64_t NewFalseWeight = TrueWeight + 2 * FalseWeight; in splitBranchCondition()
5598 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
5600 NewTrueWeight = TrueWeight; in splitBranchCondition()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5541 uint64_t TrueWeight, FalseWeight; in isFormingBranchFromSelectProfitable() local
5542 if (SI->extractProfMetadata(TrueWeight, FalseWeight)) { in isFormingBranchFromSelectProfitable()
5543 uint64_t Max = std::max(TrueWeight, FalseWeight); in isFormingBranchFromSelectProfitable()
5544 uint64_t Sum = TrueWeight + FalseWeight; in isFormingBranchFromSelectProfitable()
6870 uint64_t TrueWeight, FalseWeight; in splitBranchCondition() local
6871 if (Br1->extractProfMetadata(TrueWeight, FalseWeight)) { in splitBranchCondition()
6872 uint64_t NewTrueWeight = TrueWeight; in splitBranchCondition()
6873 uint64_t NewFalseWeight = TrueWeight + 2 * FalseWeight; in splitBranchCondition()
6876 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
6878 NewTrueWeight = TrueWeight; in splitBranchCondition()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h213 TrueWeight(trueweight), FalseWeight(falseweight) { } in CC()
230 uint32_t TrueWeight, FalseWeight; member
DSelectionDAGBuilder.cpp1576 addSuccessorWithWeight(SwitchBB, CB.TrueBB, CB.TrueWeight); in visitSwitchCase()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp3009 uint32_t TrueWeight, in SimplifyTerminatorOnSelect() argument
3043 if (TrueWeight != FalseWeight) in SimplifyTerminatorOnSelect()
3046 .createBranchWeights(TrueWeight, FalseWeight)); in SimplifyTerminatorOnSelect()
3085 uint32_t TrueWeight = 0, FalseWeight = 0; in SimplifySwitchOnSelect() local
3091 TrueWeight = in SimplifySwitchOnSelect()
3099 return SimplifyTerminatorOnSelect(SI, Condition, TrueBB, FalseBB, TrueWeight, in SimplifySwitchOnSelect()
3949 uint64_t TrueWeight = 0; in TurnSwitchRangeIntoICmp() local
3953 TrueWeight += Weights[I]; in TurnSwitchRangeIntoICmp()
3957 while (TrueWeight > UINT32_MAX || FalseWeight > UINT32_MAX) { in TurnSwitchRangeIntoICmp()
3958 TrueWeight /= 2; in TurnSwitchRangeIntoICmp()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp209 uint64_t TrueWeight, FalseWeight; in updatePredecessorProfileMetadata() local
210 if (!CondBr->extractProfMetadata(TrueWeight, FalseWeight)) in updatePredecessorProfileMetadata()
240 TrueWeight, TrueWeight + FalseWeight) in updatePredecessorProfileMetadata()
242 FalseWeight, TrueWeight + FalseWeight)); in updatePredecessorProfileMetadata()
/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVInstruction.h778 SPIRVLabel *TheFalseLabel, SPIRVBasicBlock *TheBB, SPIRVWord TrueWeight,
782 BranchWeights.push_back(TrueWeight);