@@ -32,9 +32,9 @@ namespace opts {
32
32
33
33
extern cl::OptionCategory BoltOptCategory;
34
34
35
- static cl::opt<bool > UseDFS ( " icf-dfs " ,
36
- cl::desc (" use DFS ordering when using -icf option" ),
37
- cl::ReallyHidden, cl::cat(BoltOptCategory));
35
+ static cl::opt<bool >
36
+ ICFUseDFS ( " icf-dfs " , cl::desc(" use DFS ordering when using -icf option" ),
37
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
38
38
39
39
static cl::opt<bool >
40
40
TimeICF (" time-icf" ,
@@ -170,7 +170,7 @@ static bool isIdenticalWith(const BinaryFunction &A, const BinaryFunction &B,
170
170
// Process both functions in either DFS or existing order.
171
171
SmallVector<const BinaryBasicBlock *, 0 > OrderA;
172
172
SmallVector<const BinaryBasicBlock *, 0 > OrderB;
173
- if (opts::UseDFS ) {
173
+ if (opts::ICFUseDFS ) {
174
174
copy (A.dfs (), std::back_inserter (OrderA));
175
175
copy (B.dfs (), std::back_inserter (OrderB));
176
176
} else {
@@ -360,7 +360,7 @@ void IdenticalCodeFolding::runOnFunctions(BinaryContext &BC) {
360
360
361
361
// Pre-compute hash before pushing into hashtable.
362
362
// Hash instruction operands to minimize hash collisions.
363
- BF.computeHash (opts::UseDFS , [&BC](const MCOperand &Op) {
363
+ BF.computeHash (opts::ICFUseDFS , [&BC](const MCOperand &Op) {
364
364
return hashInstOperand (BC, Op);
365
365
});
366
366
};
0 commit comments