[PATCH] D53320: [llvm-exegeis] Computing Latency configuration upfront so we can generate many CodeTemplates at once.

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 16 05:07:54 PDT 2018


gchatelet created this revision.
gchatelet added a reviewer: courbet.
Herald added a subscriber: llvm-commits.

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")


Repository:
  rL LLVM

https://reviews.llvm.org/D53320

Files:
  tools/llvm-exegesis/lib/CodeTemplate.cpp
  tools/llvm-exegesis/lib/CodeTemplate.h
  tools/llvm-exegesis/lib/Latency.cpp
  tools/llvm-exegesis/lib/MCInstrDescView.cpp
  tools/llvm-exegesis/lib/MCInstrDescView.h
  unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53320.169811.patch
Type: text/x-patch
Size: 23106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181016/1fe38822/attachment.bin>


More information about the llvm-commits mailing list