[PATCH] D46276: [CostModel][X86] Derive TTI costs from complete scheduling models (PR36550) (RFC)

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 01:23:49 PDT 2018


courbet added a comment.

> 2 - The patch embeds likely code sequences into the cost tables; this is going to get very bulkly very quickly, as we need to provide sequences for a number of ISAs, as well as keeping default costs until we have full scheduler model coverage.

Isn't that essentially duplicating information from instruction selection ? How hard would it be to generate the code snippets automatically ? 
It could be done at runtime (something like: generate a "template" vectorized Instruction and lower it in a dummy context to get the MIOp sequence), or maybe even at compile time (not saying it's easy but theoretically we have all the information to do that).


Repository:
  rL LLVM

https://reviews.llvm.org/D46276





More information about the llvm-commits mailing list