summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2021-08-23 19:20:07 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2021-08-23 19:20:21 +0800
commit2556f58148836f0af3ad2c73fe54bbdf49f0295a (patch)
tree9fcaeec67568e6b2e48530780f8420de571941c5 /clang/lib/CodeGen/CodeGenModule.cpp
parent8300d52e8cbf757192d6b66efa537e15376bf756 (diff)
[FuncSpec] Don't specialize function which are easy to inline
It would waste time to specialize a function which would inline finally. This patch did two things: - Don't specialize functions which are always-inline. - Don't spescialize functions whose lines of code are less than threshold (100 by default). For spec2017int, this patch could reduce the number of specialized functions by 33%. Then the compile time didn't increase for every benchmark. Reviewed By: SjoerdMeijer, xbolva00, snehasish Differential Revision: https://reviews.llvm.org/D107897
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions