|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/Support/BranchProbability.h 81 uint64_t scale(uint64_t Num) const;
References
include/llvm/Analysis/BlockFrequencyInfoImpl.h 122 Mass = P.scale(Mass);
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp10432 uint32_t Denominator = SwitchProb.scale(CaseProb.getDenominator());
lib/Support/BlockFrequency.cpp 19 Frequency = Prob.scale(Frequency);
lib/Target/ARM/ARMBaseInstrInfo.cpp 2062 unsigned TUnpredCost = Probability.scale(TUnpredCycles * ScalingUpFactor);
2063 unsigned FUnpredCost = Probability.getCompl().scale(FUnpredCycles * ScalingUpFactor);
2071 unsigned TUnpredCost = Probability.scale(TCycles * ScalingUpFactor);
2073 Probability.getCompl().scale(FCycles * ScalingUpFactor);
lib/Transforms/Instrumentation/CFGMST.h 137 Weight = BPI->getEdgeProbability(&*BB, TargetBB).scale(scaleFactor);
lib/Transforms/Instrumentation/ControlHeightReduction.cpp 1872 Weights.push_back(static_cast<uint32_t>(CHRBranchBias.scale(1000)));
1873 Weights.push_back(static_cast<uint32_t>(CHRBranchBias.getCompl().scale(1000)));
lib/Transforms/Utils/MisExpect.cpp 133 uint64_t ScaledThreshold = LikelyThreshold.scale(CaseTotal);
unittests/Support/BranchProbabilityTest.cpp 174 EXPECT_EQ(UINT64_MAX, BP(1, 1).scale(UINT64_MAX));
175 EXPECT_EQ(UINT64_MAX, BP(7, 7).scale(UINT64_MAX));
176 EXPECT_EQ(UINT32_MAX, BP(1, 1).scale(UINT32_MAX));
177 EXPECT_EQ(UINT32_MAX, BP(7, 7).scale(UINT32_MAX));
178 EXPECT_EQ(0u, BP(1, 1).scale(0));
179 EXPECT_EQ(0u, BP(7, 7).scale(0));
182 EXPECT_EQ(0u, BP(0, 1).scale(UINT64_MAX));
183 EXPECT_EQ(0u, BP(0, 1).scale(UINT64_MAX));
184 EXPECT_EQ(0u, BP(0, 1).scale(0));
190 EXPECT_EQ(Two63 - 1, BP(1, 2).scale(UINT64_MAX));
193 EXPECT_EQ(1u, BP(Two31, UINT32_MAX).scale(2));
194 EXPECT_EQ(Two31, BP(Two31, UINT32_MAX).scale(Two31 * 2));
195 EXPECT_EQ(9223372036854775807ULL, BP(Two31, UINT32_MAX).scale(UINT64_MAX));
199 BP(Two31 + 1, UINT32_MAX - 2).scale(UINT64_MAX));
333 EXPECT_EQ(T.Result, BP(T.Prob[0], T.Prob[1]).scale(T.Num));