]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/115701 - fix maybe_duplicate_ssa_info_at_copy
authorRichard Biener <rguenther@suse.de>
Sun, 30 Jun 2024 09:34:43 +0000 (11:34 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 30 Jun 2024 10:55:27 +0000 (12:55 +0200)
commitb77f17c5feec9614568bf2dee7f7d811465ee4a5
tree1c6dc28b31d6a003da7b0a75ff33cb0189572298
parentb5c64b413fd5bc03a1a8ef86d005892071e42cbe
tree-optimization/115701 - fix maybe_duplicate_ssa_info_at_copy

The following restricts copying of points-to info from defs that
might be in regions invoking UB and are never executed.

PR tree-optimization/115701
* tree-ssanames.cc (maybe_duplicate_ssa_info_at_copy):
Only copy info from within the same BB.

* gcc.dg/torture/pr115701.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr115701.c [new file with mode: 0644]
gcc/tree-ssanames.cc