[NFC] [FuncSpec] Update the Todo list for recursive functions
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Fri, 6 Aug 2021 06:41:46 +0000 (14:41 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Fri, 6 Aug 2021 06:43:17 +0000 (14:43 +0800)
Now the recursive functions may get specialized many times when
`func-specialization-max-iters` increases. See discussion in
https://reviews.llvm.org/D106426 for details.

llvm/lib/Transforms/IPO/FunctionSpecialization.cpp

index 87fe6cd..9ef8e30 100644 (file)
 //   a direct way to steer function specialization, avoiding the cost-model,
 //   and thus control compile-times / code-size.
 //
+// Todos:
+// - Limit the times a recursive function get specialized when
+// `func-specialization-max-iters`
+//   increases linearly. See discussion in https://reviews.llvm.org/D106426 for
+//   details.
+//
 //===----------------------------------------------------------------------===//
 
 #include "llvm/ADT/Statistic.h"