Hi, This patch sets param_vect_max_version_for_alias_checks to 15. This was causing GCC to miss vectorization opportunities in one internal application making it slower than LLVM by about ~14%.
I've tested different param_vect_max_version_for_alias_checks such as 15 and 100 and the SPEC2017 results are neutral. I have also tested with some other thirdparty benchmarks and the results are similar. Original default of 10 itself seem arbitary. Given that, GCC's vectoriser does consideres cost of alias checks, increasing this param seems reasonable. In our case we need a value of at teast 11 where as the current default is 10. Bootstrapped and regression tested on aarc64-linux-gnu with no new regressions. Thanks, Kugan
0001-RFC-PATCH-Adjust-param_vect_max_version_for_alias_ch.patch
Description: 0001-RFC-PATCH-Adjust-param_vect_max_version_for_alias_ch.patch