]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/116081 - typedef vs. non-typedef in vectorization
authorRichard Biener <rguenther@suse.de>
Thu, 25 Jul 2024 10:46:30 +0000 (12:46 +0200)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 28 Jul 2024 17:05:57 +0000 (19:05 +0200)
commit3257d6e954c9650940162f08613fee25602ec5d4
tree7c6848d3bf354c77a1560c79efe04f49d4ecefcc
parentb42f73132c51aece4bed43cdceb4b8cf31197a2b
tree-optimization/116081 - typedef vs. non-typedef in vectorization

The following fixes the code generation difference when using
a typedef for the scalar type.  The issue is using a pointer
equality test for an INTEGER_CST which fails when the types
are different variants.

PR tree-optimization/116081
* tree-vect-loop.cc (get_initial_defs_for_reduction):
Use operand_equal_p for comparing the element with the
neutral op.
gcc/tree-vect-loop.cc