Open LeiW000 opened 2 years ago
Thanks for the report. Please use -strict=0
option as a workaround.
Another potential cause is the presence of split functions:
BOLT-WARNING: split function detected on input : OnUpdate_date_timezone.cold.13
BOLT is currently incompatible with the -freorder-blocks-and-partition
compiler option producing split functions. Since GCC8 enables this option by default, you have to explicitly disable it by adding -fno-reorder-blocks-and-partition
flag if you are compiling with GCC8 or above.
@maksfb, thanks. I need some time to try that option. Will update you if it can work later.
@aaupov , Thanks for the quick response. I used GCC7 to build php-fpm. My understanding is that I don't have to add that flag. Am I right?
@maksfb, thanks. I need some time to try that option. Will update you if it can work later.
@aaupov , Thanks for the quick response. I used GCC7 to build php-fpm. My understanding is that I don't have to add that flag. Am I right?
Check your compiler flags, and if they include -freorder-blocks-and-partition
, just remove it. GCC7 has this optimization but doesn't enable it by default.
Thanks for the report. Please use
-strict=0
option as a workaround.
@maksfb , it looks the option can work as a workaround. May I know what "-strict=0" means? I don't find anything about it in the official document.
I tried to bolt a PGO-based php-fpm binary. When I run perf2bolt, the following assertion was shown up.
The following is the version info of perf2bolt