aboutsummaryrefslogtreecommitdiff
path: root/gcc/m2/gm2-compiler/PathName.def
diff options
context:
space:
mode:
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-09-07 09:33:07 -0700
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-09-07 13:46:39 -0700
commit7e1143abd32cd40d24479d4c536b610ea9aad2db (patch)
treed414572df40a4ba007d124d39a11170d20d0231f /gcc/m2/gm2-compiler/PathName.def
parent1b9c218d1429d596a33b13e450da0bdc1643e984 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
forwprop: Improve rejection of overlapping for copyprop of aggregates [PR121841]HEADtrunkmaster
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