diff options
Diffstat (limited to 'llvm/tools/llvm-exegesis/llvm-exegesis.cpp')
-rw-r--r-- | llvm/tools/llvm-exegesis/llvm-exegesis.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp index 623d3011dfb..2d4e3f8a28f 100644 --- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp +++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp @@ -146,12 +146,12 @@ void analysisMain() { llvm::errs() << "unknown target '" << Points[0].LLVMTriple << "'\n"; return; } - std::unique_ptr<llvm::MCSubtargetInfo> STI(TheTarget->createMCSubtargetInfo( - Points[0].LLVMTriple, Points[0].CpuName, "")); - const auto Clustering = llvm::cantFail(InstructionBenchmarkClustering::create( Points, AnalysisNumPoints, AnalysisEpsilon)); - if (auto Err = printAnalysisClusters(Clustering, *STI, llvm::outs())) + + const Analysis Analyzer(*TheTarget, Clustering); + + if (auto Err = Analyzer.printClusters(llvm::outs())) llvm::report_fatal_error(std::move(Err)); } |