diff options
author | Martin Jambor <mjambor@suse.cz> | 2025-04-07 13:32:10 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2025-04-07 13:32:59 +0200 |
commit | 40445711b8af113ef423d8bcac1a7ce1c47f62d7 (patch) | |
tree | 2a234f9c05377c78957b2063cfc65b9501fc25fe /libjava/classpath/lib/java/net/HttpURLConnection.class | |
parent | 07d243670020b339380194f6125cde87ada56148 (diff) | |
download | gcc-40445711b8af113ef423d8bcac1a7ce1c47f62d7.zip gcc-40445711b8af113ef423d8bcac1a7ce1c47f62d7.tar.gz gcc-40445711b8af113ef423d8bcac1a7ce1c47f62d7.tar.bz2 |
sra: Clear grp_same_access_path of acesses created by total scalarization (PR118924)
During analysis of PR 118924 it was discussed that total scalarization
invents access paths (strings of COMPONENT_REFs and possibly even
ARRAY_REFs) which did not exist in the program before which can have
unintended effects on subsequent AA queries. Although not doing that
does not mean that SRA cannot create such situations (see the bug for
more info), it has been agreed that not doing this is generally better.
This patch therfore makes SRA fall back on creating simple MEM_REFs when
accessing components of an aggregate corresponding to what a SRA
variable now represents.
gcc/ChangeLog:
2025-03-26 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/118924
* tree-sra.cc (create_total_scalarization_access): Set
grp_same_access_path flag to zero.
Diffstat (limited to 'libjava/classpath/lib/java/net/HttpURLConnection.class')
0 files changed, 0 insertions, 0 deletions