]> gcc.gnu.org Git - gcc.git/commit
ivopts: fix wide_int_constant_multiple_p when VAL and DIV are 0. [PR114932]
authorTamar Christina <tamar.christina@arm.com>
Wed, 3 Jul 2024 08:30:28 +0000 (09:30 +0100)
committerTamar Christina <tamar.christina@arm.com>
Wed, 3 Jul 2024 08:30:28 +0000 (09:30 +0100)
commit25127123100f04c2d5d70c6933a5f5aedcd69c40
tree285bea41b370bb5de6c0c26a603460d50f8fa96e
parent47ea6bddd15a568cedc5d7026d2cc9d5599e6e01
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.
gcc/tree-affine.cc
This page took 0.054635 seconds and 5 git commands to generate.