diff options
author | Tamar Christina <tamar.christina@arm.com> | 2024-07-03 09:30:28 +0100 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2024-07-03 09:30:28 +0100 |
commit | 25127123100f04c2d5d70c6933a5f5aedcd69c40 (patch) | |
tree | 285bea41b370bb5de6c0c26a603460d50f8fa96e /gcc/tree-vect-patterns.cc | |
parent | 47ea6bddd15a568cedc5d7026d2cc9d5599e6e01 (diff) | |
download | gcc-25127123100f04c2d5d70c6933a5f5aedcd69c40.zip gcc-25127123100f04c2d5d70c6933a5f5aedcd69c40.tar.gz gcc-25127123100f04c2d5d70c6933a5f5aedcd69c40.tar.bz2 |
ivopts: fix wide_int_constant_multiple_p when VAL and DIV are 0. [PR114932]
wide_int_constant_multiple_p tries to check if for two tree expressions a and b
that there is a multiplier which makes a == b * c.
This code however seems to think that there's no c where a=0 and b=0 are equal
which is of course wrong.
This fixes it and also fixes the comment.
gcc/ChangeLog:
PR tree-optimization/114932
* tree-affine.cc (wide_int_constant_multiple_p): Support 0 and 0 being
multiples.
Diffstat (limited to 'gcc/tree-vect-patterns.cc')
0 files changed, 0 insertions, 0 deletions