[llvm] bc5644e - [MLGO] Regalloc: allow multiple occurences of -regalloc-enable-advisor

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 29 09:01:14 PST 2022


Author: Mircea Trofin
Date: 2022-01-29T09:00:52-08:00
New Revision: bc5644ee74f4cb42042257ac129d2be1c252e3f2

URL: https://github.com/llvm/llvm-project/commit/bc5644ee74f4cb42042257ac129d2be1c252e3f2
DIFF: https://github.com/llvm/llvm-project/commit/bc5644ee74f4cb42042257ac129d2be1c252e3f2.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp b/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
index 87df7bb4a6896..995079f909ec3 100644
--- a/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
+++ b/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
@@ -25,7 +25,7 @@
 using namespace llvm;
 
 static cl::opt<RegAllocEvictionAdvisorAnalysis::AdvisorMode> Mode(
-    "regalloc-enable-advisor", cl::Hidden,
+    "regalloc-enable-advisor", cl::Hidden, cl::ZeroOrMore,
     cl::init(RegAllocEvictionAdvisorAnalysis::AdvisorMode::Default),
     cl::desc("Enable regalloc advisor mode"),
     cl::values(


        


More information about the llvm-commits mailing list