From fcbb6f3c2b7963a697e5291538bf9d120cb80b93 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Wed, 17 Oct 2018 11:37:28 +0000 Subject: [llvm-exegeis] Computing Latency configuration upfront so we can generate many CodeTemplates at once. Summary: LatencyGenerator now computes all possible mode of serial execution for an Instruction upfront and generates CodeTemplate for the ones that give the best results (e.g. no need to generate a two instructions snippet when repeating a single one would do). The next step is to generate even more configurations for cases (e.g. for XOR we should generate "XOR EAX, EAX, EAX" and "XOR EAX, EAX, EBX") Reviewers: courbet Reviewed By: courbet Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D53320 llvm-svn: 344689 --- llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp') diff --git a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp index feee61d113c..cdf54a32e4f 100644 --- a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp +++ b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp @@ -22,7 +22,7 @@ namespace exegesis { -std::vector getSingleton(CodeTemplate &CT) { +std::vector getSingleton(CodeTemplate &&CT) { std::vector Result; Result.push_back(std::move(CT)); return Result; -- cgit v1.2.3