Skip to content

Commit bc5644e

Browse files
committed
[MLGO] Regalloc: allow multiple occurences of -regalloc-enable-advisor
This allows scearios where some central config sets it one way and a user wants to override it.
1 parent 56cc697 commit bc5644e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
using namespace llvm;
2626

2727
static cl::opt<RegAllocEvictionAdvisorAnalysis::AdvisorMode> Mode(
28-
"regalloc-enable-advisor", cl::Hidden,
28+
"regalloc-enable-advisor", cl::Hidden, cl::ZeroOrMore,
2929
cl::init(RegAllocEvictionAdvisorAnalysis::AdvisorMode::Default),
3030
cl::desc("Enable regalloc advisor mode"),
3131
cl::values(

0 commit comments

Comments
 (0)