]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PATCH] Adjust param_vect_max_version_for_alias_checks
authorKugan Vivekanandarajah <kvivekananda@nvidia.com>
Wed, 30 Oct 2024 20:20:49 +0000 (07:20 +1100)
committerKugan Vivekanandarajah <kvivekananda@nvidia.com>
Wed, 30 Oct 2024 20:21:30 +0000 (07:21 +1100)
commit5be5c66071b407a767856b8fa300ede54fcf11b4
tree3538c4326193cc5aa78fb5b5b0c1cfd1c757e174
parent857145bf9a2168c8037820148b8894fbd74a823b
[PATCH] Adjust param_vect_max_version_for_alias_checks

This patch sets param_vect_max_version_for_alias_checks to 15.
This was causing GCC to miss vectorization opportunities for an application,
making it slower than LLVM by about ~14%.

Original default of 10 itself is arbitary. Given that, GCC's vectoriser does
consideres cost of alias checks, increasing this param is reasonable.

In this case we need a value of at teast 11 whereas the current
default is 10.

gcc/ChangeLog:

* params.opt: Adjust param_vect_max_version_for_alias_checks

gcc/testsuite/ChangeLog:

* g++.dg/alias-checks.C: New test.

Signed-off-by: Kugan Vivekanandarajah <kvivekananda@nvidia.com>
gcc/params.opt
gcc/testsuite/g++.dg/alias-checks.C [new file with mode: 0644]