diff options
author | Richard Biener <rguenther@suse.de> | 2024-07-25 12:46:30 +0200 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:57 +0200 |
commit | 3257d6e954c9650940162f08613fee25602ec5d4 (patch) | |
tree | 7c6848d3bf354c77a1560c79efe04f49d4ecefcc /libcpp | |
parent | b42f73132c51aece4bed43cdceb4b8cf31197a2b (diff) | |
download | gcc-3257d6e954c9650940162f08613fee25602ec5d4.zip gcc-3257d6e954c9650940162f08613fee25602ec5d4.tar.gz gcc-3257d6e954c9650940162f08613fee25602ec5d4.tar.bz2 |
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.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions