Skip to content

Commit 5b686ad

Browse files
committed
rebase
1 parent 9b52f82 commit 5b686ad

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,7 @@ STATISTIC(NumVirtConstProp1Bit,
131131
"Number of 1 bit virtual constant propagations");
132132
STATISTIC(NumVirtConstProp, "Number of virtual constant propagations");
133133

134-
// TODO: This option eventually should support any public visibility vtables
135-
// with/out LTO.
136-
static cl::opt<bool> ClDevirtualizeSpeculatively(
137-
"devirtualize-speculatively",
138-
cl::desc("Enable speculative devirtualization optimization"),
139-
cl::init(false));
134+
namespace llvm {
140135

141136
static cl::opt<PassSummaryAction> ClSummaryAction(
142137
"wholeprogramdevirt-summary-action",
@@ -161,6 +156,13 @@ static cl::opt<std::string> ClWriteSummary(
161156
"bitcode, otherwise YAML"),
162157
cl::Hidden);
163158

159+
// TODO: This option eventually should support any public visibility vtables
160+
// with/out LTO.
161+
static cl::opt<bool> ClDevirtualizeSpeculatively(
162+
"devirtualize-speculatively",
163+
cl::desc("Enable speculative devirtualization optimization"),
164+
cl::init(false));
165+
164166
static cl::opt<unsigned>
165167
ClThreshold("wholeprogramdevirt-branch-funnel-threshold", cl::Hidden,
166168
cl::init(10),

0 commit comments

Comments
 (0)