]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/115199 - fix PTA constraint processing for &ANYTHING LHS
authorRichard Biener <rguenther@suse.de>
Thu, 23 May 2024 11:33:15 +0000 (13:33 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 23 May 2024 12:38:49 +0000 (14:38 +0200)
commitf0a02467bbc35a478eb82f5a8a7e8870827b51fc
tree2bd554b0bd652af469d52dd8a0421ddb1b6acc0a
parent61f5b3c59ed20438d7d9918d7a83d29a21097d4e
tree-optimization/115199 - fix PTA constraint processing for &ANYTHING LHS

When processing a &ANYTHING = X constraint we treat it as *ANYTHING = X
during constraint processing but then end up recording it as
&ANYTHING = X anyway, breaking constraint graph building.  This is
because we only update the local copy of the LHS and not the constraint
itself.

PR tree-optimization/115199
* tree-ssa-structalias.cc (process_constraint): Also
record &ANYTHING = X as *ANYTING = X in the end.

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