]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end/115110 - Fix view_converted_memref_p
authorRichard Biener <rguenther@suse.de>
Fri, 17 May 2024 09:02:29 +0000 (11:02 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 21 Oct 2024 10:47:11 +0000 (12:47 +0200)
commit2ac6159f8b5119e75a19f70f3c4578895f59cb53
tree60fe8b13adc49896174c24c492d61cad29d1f8a6
parent17f1277d78c51d64a222ade218796837f9153f42
middle-end/115110 - Fix view_converted_memref_p

view_converted_memref_p was checking the reference type against the
pointer type of the offset operand rather than its pointed-to type
which leads to all refs being subject to view-convert treatment
in get_alias_set causing numerous testsuite fails but with its
new uses from r15-512-g9b7cad5884f21c is also a wrong-code issue.

PR middle-end/115110
* tree-ssa-alias.cc (view_converted_memref_p): Fix.

(cherry picked from commit a5b3721c06646bf5b9b50a22964e8e2bd4d03f5f)
gcc/tree-ssa-alias.cc