|
45 | 45 | #include "llvm/IR/IRBuilder.h"
|
46 | 46 | #include "llvm/IR/Module.h"
|
47 | 47 | #include "llvm/IR/Type.h"
|
48 |
| -#include "llvm/Support/BranchProbability.h" |
49 | 48 | #include "llvm/Support/Casting.h"
|
50 | 49 | #include "llvm/Support/CommandLine.h"
|
51 | 50 | #include "llvm/Support/Compiler.h"
|
@@ -114,17 +113,6 @@ static bool darwinHasSinCos(const Triple &TT) {
|
114 | 113 | return true;
|
115 | 114 | }
|
116 | 115 |
|
117 |
| -// Although this default value is arbitrary, it is not random. It is assumed |
118 |
| -// that a condition that evaluates the same way by a higher percentage than this |
119 |
| -// is best represented as control flow. Therefore, the default value N should be |
120 |
| -// set such that the win from N% correct executions is greater than the loss |
121 |
| -// from (100 - N)% mispredicted executions for the majority of intended targets. |
122 |
| -static cl::opt<int> MinPercentageForPredictableBranch( |
123 |
| - "min-predictable-branch", cl::init(99), |
124 |
| - cl::desc("Minimum percentage (0-100) that a condition must be either true " |
125 |
| - "or false to assume that the condition is predictable"), |
126 |
| - cl::Hidden); |
127 |
| - |
128 | 116 | void TargetLoweringBase::InitLibcalls(const Triple &TT) {
|
129 | 117 | #define HANDLE_LIBCALL(code, name) \
|
130 | 118 | setLibcallName(RTLIB::code, name);
|
@@ -1736,10 +1724,6 @@ bool TargetLoweringBase::allowsMemoryAccess(LLVMContext &Context,
|
1736 | 1724 | MMO.getAlign(), MMO.getFlags(), Fast);
|
1737 | 1725 | }
|
1738 | 1726 |
|
1739 |
| -BranchProbability TargetLoweringBase::getPredictableBranchThreshold() const { |
1740 |
| - return BranchProbability(MinPercentageForPredictableBranch, 100); |
1741 |
| -} |
1742 |
| - |
1743 | 1727 | //===----------------------------------------------------------------------===//
|
1744 | 1728 | // TargetTransformInfo Helpers
|
1745 | 1729 | //===----------------------------------------------------------------------===//
|
|
0 commit comments