[PATCH] D106426: [FuncSpec] Support specialising recursive functions

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 26 03:14:21 PDT 2021


SjoerdMeijer added a comment.

I am looking into this now, but now that we have cleared up the problem in previous messages, a.k.a are on the same page how things work for recursive function, I think we need to discuss how the cost-model changes would look like. Because in this example the numbers are arbitrary and a rationale is missing:

> I guess I would be happy if recursiveFunc  would get specialized less than 4 times even when we set  func-specialization-max-iters to 100.

Why 4 times? In other words, what is the metric here? Is that code-size or something else?


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

https://reviews.llvm.org/D106426



More information about the llvm-commits mailing list