/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
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()
|
D | SimplifyCFG.cpp | 786 uint32_t FalseWeight) { in setBranchWeights() argument 791 if (TrueWeight || FalseWeight) in setBranchWeights() 793 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights() 3408 uint32_t FalseWeight) { 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 3489 FalseWeight = in SimplifySwitchOnSelect() 3496 FalseWeight); in SimplifySwitchOnSelect() 4345 uint64_t FalseWeight = 0; in TurnSwitchRangeIntoICmp() local [all …]
|
/external/llvm/lib/IR/ |
D | MDBuilder.cpp | 38 uint32_t FalseWeight) { in createBranchWeights() argument 39 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
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()
|
/external/llvm/include/llvm/IR/ |
D | MDBuilder.h | 58 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | MDBuilder.cpp | 39 uint32_t FalseWeight) { in createBranchWeights() argument 40 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | MDBuilder.h | 61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 4558 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() 5595 uint64_t NewFalseWeight = TrueWeight + 2 * FalseWeight; in splitBranchCondition() 5598 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 5601 NewFalseWeight = 2 * FalseWeight; in splitBranchCondition() 5604 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 5541 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() 6873 uint64_t NewFalseWeight = TrueWeight + 2 * FalseWeight; in splitBranchCondition() 6876 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 6879 NewFalseWeight = 2 * FalseWeight; in splitBranchCondition() 6882 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 213 TrueWeight(trueweight), FalseWeight(falseweight) { } in CC() 230 uint32_t TrueWeight, FalseWeight; member
|
D | SelectionDAGBuilder.cpp | 1577 addSuccessorWithWeight(SwitchBB, CB.FalseBB, CB.FalseWeight); in visitSwitchCase()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 3010 uint32_t FalseWeight) { 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 3093 FalseWeight = in SimplifySwitchOnSelect() 3100 FalseWeight); in SimplifySwitchOnSelect() 3950 uint64_t FalseWeight = 0; in TurnSwitchRangeIntoICmp() local 3955 FalseWeight += Weights[I]; in TurnSwitchRangeIntoICmp() 3957 while (TrueWeight > UINT32_MAX || FalseWeight > UINT32_MAX) { in TurnSwitchRangeIntoICmp() 3959 FalseWeight /= 2; in TurnSwitchRangeIntoICmp() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 209 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/ |
D | SPIRVInstruction.h | 779 SPIRVWord FalseWeight) 783 BranchWeights.push_back(FalseWeight);
|