[llvm] f6b1d88 - [Exegesis] Unbreak running benchmarks on local machine

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 16:48:38 PST 2022


Author: Roman Lebedev
Date: 2022-12-08T03:48:24+03:00
New Revision: f6b1d88527886683a67bebf27df3ad626fa3940e

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

LOG: [Exegesis] Unbreak running benchmarks on local machine

`LLVMState::Create()` would autodetect if `native` is specified,
but the default was `""`

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/llvm-exegesis.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
index 8da8d6db49997..551988948ded2 100644
--- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
+++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
@@ -201,7 +201,7 @@ static cl::opt<std::string>
 static cl::opt<std::string>
     MCPU("mcpu",
          cl::desc("Target a specific cpu type (-mcpu=help for details)"),
-         cl::value_desc("cpu-name"), cl::cat(Options));
+         cl::value_desc("cpu-name"), cl::cat(Options), cl::init("native"));
 
 static cl::opt<bool>
     DumpObjectToDisk("dump-object-to-disk",


        


More information about the llvm-commits mailing list