[FuncSpec] Add an option to specializing literal constant
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 30 Jun 2021 03:24:44 +0000 (11:24 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 30 Jun 2021 03:26:44 +0000 (11:26 +0800)
commit801c2b9bbaad778fd4f9fb25b4ab2bd8742a5a3b
tree4990eaa1b9319d5062df45e9817bbfe2d022f778
parent1d9539cf49a585e7c3cd8faa1b8e7291e0ce285c
[FuncSpec] Add an option to specializing literal constant

Now the option is off by default. Since we are not sure if this option
would make the compile time increase aggressively. Although we tested it
on SPEC2017, we may need to test more to make it on by default.

Reviewed By: SjoerdMeijer

Differential Revision: https://reviews.llvm.org/D104365
llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
llvm/test/Transforms/FunctionSpecialization/function-specialization-constant-integers.ll [new file with mode: 0644]