[PATCH] D60401: [llvm-exegesis] When generating templates with chained instructions, also add templates for helper instructions

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 11 05:20:24 PDT 2019


gchatelet added a comment.

In D60401#1462567 <https://reviews.llvm.org/D60401#1462567>, @lebedev.ri wrote:

> In D60401#1462522 <https://reviews.llvm.org/D60401#1462522>, @gchatelet wrote:
>
> > ...
>
>
> So i agree in general, but i don't think i agree with fine print.
>
> What if i don't want to validate the whole entirety of the instructions,
>  but only one of these instructions that is `Measurable through another instruction`?
>  I simply can't?


Well yes that would still be possible but you'd still need to go through the preprocessing / build the dependency graph for the subset of interest. The exploration would be restricted to the instruction + dependent instructions.
There will be a startup cost for this strategy but it will take much less time than testing everything.

If the startup cost is too big there are a few possibilities we can investigate:

- use a cache to store the precomputed data.
- have the precomputation done during llvm-exegesis build.

Would that work for you?


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60401/new/

https://reviews.llvm.org/D60401





More information about the llvm-commits mailing list