]> git.ipfire.org Git - thirdparty/gcc.git/commit
slsr: fix overflow from create_add_on_incoming_edge [PR106883]
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 17 Jan 2026 04:25:56 +0000 (20:25 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Fri, 23 Jan 2026 16:03:07 +0000 (08:03 -0800)
commit8ae508ca5a3cf5ed4c0d511bb41c47ed005e5a06
tree900f8069428f3a7f87b995d9e890478d8a145455
parentcea3a0c16df1b635186acbdc2474042339704b94
slsr: fix overflow from create_add_on_incoming_edge [PR106883]

This fixes the overlfow that might be introduced from
creater_add_on_incoming_edge. I have not found a testcase where this
shows up, there possibility could be.

PR tree-optimization/106883

gcc/ChangeLog:

* gimple-ssa-strength-reduction.cc (create_add_on_incoming_edge): Rewrite
the new addition on the edge too.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/gimple-ssa-strength-reduction.cc