[CSSPGO][Preinliner] Set default value of sample-profile-inline-limit-max to 3000
authorHongtao Yu <hoy@fb.com>
Wed, 8 Jun 2022 18:50:19 +0000 (11:50 -0700)
committerHongtao Yu <hoy@fb.com>
Wed, 8 Jun 2022 19:10:11 +0000 (12:10 -0700)
commit7d293744a89a21759744c147159343046b8bd924
treed11edc4eb4181ab0e6b950a5fa2a8b5f1890640a
parent060907dd008011256da84ad48e93ddd1eae087ea
[CSSPGO][Preinliner] Set default value of sample-profile-inline-limit-max to 3000

The default value of sample-profile-inline-limit-max is defined as 10000 in sampleprofile.cpp. This is too big for cspreinliner which works with assembly size instead of IR size. The value 3000 turns out to be a good tradeoff. Compared to the value 10000, 3000 gives as good performance and code size, but lower build time.

Reviewed By: wenlei, wlei

Differential Revision: https://reviews.llvm.org/D127330
llvm/tools/llvm-profgen/CSPreInliner.cpp