aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-01-15 14:31:57 +0100
committerRichard Biener <rguenth@gcc.gnu.org>2025-01-16 09:43:03 +0100
commitea1deefe54ea1c5182bfa179abf36469c9ec6974 (patch)
treeb479d7423dfe5b26f2dd47e41f5fee856dbecb2b /libjava/classpath
parent7f5adfd31b3af08924faec36679eaea40a98af19 (diff)
downloadgcc-ea1deefe54ea1c5182bfa179abf36469c9ec6974.zip
gcc-ea1deefe54ea1c5182bfa179abf36469c9ec6974.tar.gz
gcc-ea1deefe54ea1c5182bfa179abf36469c9ec6974.tar.bz2
tree-optimization/115494 - PRE PHI translation and ranges
When we PHI translate dependent expressions we keep SSA defs in place of the translated expression in case the expression itself did not change even though it's context did and thus the validity of ranges associated with it. That eventually leads to simplification errors given we violate the precondition that used SSA defs fed to vn_valueize are valid to use (including their associated ranges). The following makes sure to replace those with new representatives always, not only when the dependent expression translation changed it. The fix was originally discovered by Michael Morin. PR tree-optimization/115494 * tree-ssa-pre.cc (phi_translate_1): Always generate a representative for translated dependent expressions. * gcc.dg/torture/pr115494.c: New testcase. Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
Diffstat (limited to 'libjava/classpath')
0 files changed, 0 insertions, 0 deletions