summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2019-09-27 12:56:24 +0000
committerClement Courbet <courbet@google.com>2019-09-27 12:56:24 +0000
commit9431b72ce9e2dee9eddc71cff34f5fdaf853e9d4 (patch)
tree04653240b761a7a5ba76f0f3199bde02fe4fb208 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parentd69fa737fff31a3d5d11d56117c20ca9794bb2a4 (diff)
downloadbcm5719-llvm-9431b72ce9e2dee9eddc71cff34f5fdaf853e9d4.tar.gz
bcm5719-llvm-9431b72ce9e2dee9eddc71cff34f5fdaf853e9d4.zip
[llvm-exegesis] Add loop mode for repeating the snippet.
Summary: Before this change the Executable function was made by duplicating the snippet. This change adds a --repetion-mode={loop|duplicate} flag that allows choosing between this behaviour and wrapping the snippet instructions in a loop. The new mode can help measurements when the snippet fits in the DSB by short-cirtcuiting decoding. The loop adds a dec + jmp to the measurements, but since these are not part of the critical path, they execute in parallel with the measured code and do not impact measurements in practice. Overview of the change: - New SnippetRepetitor abstraction that handles repeating the snippet. The assembler delegates repeating the instructions to this class. - ExegesisTarget learns how to decrement loop counter and jump. - Some refactoring of the assembler into FunctionFiller/BasicBlockFiller. Reviewers: gchatelet Subscribers: mgorny, tschuett, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68125 llvm-svn: 373083
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud