diff options
author | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-09-07 09:33:07 -0700 |
---|---|---|
committer | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-09-07 13:46:39 -0700 |
commit | 7e1143abd32cd40d24479d4c536b610ea9aad2db (patch) | |
tree | d414572df40a4ba007d124d39a11170d20d0231f /gcc/m2/gm2-compiler/PathName.def | |
parent | 1b9c218d1429d596a33b13e450da0bdc1643e984 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
Here we have:
tmp = src1[0];
dest1[0] = tmp;
where src1 and dest1 are decls.
We currently reject this as the bases are different but since the bases
are decls we know they won't overlap.
This adds the extra check to allow this.
Bootstrapped and tested on x86_64-linux-gnu.
PR tree-optimization/121841
gcc/ChangeLog:
* tree-ssa-forwprop.cc (optimize_agr_copyprop_1): Allow
two different decls as bases as non-overlapping bases.
gcc/testsuite/ChangeLog:
* gcc.dg/tree-ssa/copy-prop-aggregate-struct-1.c: New test.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Diffstat (limited to 'gcc/m2/gm2-compiler/PathName.def')
0 files changed, 0 insertions, 0 deletions