[PATCH] D68084: [llvm-exegesis] Refactor how forbidden registers are computed.

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 06:06:03 PDT 2019


courbet created this revision.
courbet added a reviewer: gchatelet.
Herald added a subscriber: tschuett.
Herald added a project: LLVM.

Right now latency generation can incorrectly select the scratch register
as a dependency-carrying register.

- Move the logic for preventing register selection from Uops implementation to common SnippetGenerator class.
- Aliasing detection now takes a set of forbidden registers just like random register assignment does.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68084

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68084.221932.patch
Type: text/x-patch
Size: 22251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190926/8ac8f01c/attachment.bin>


More information about the llvm-commits mailing list