aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-stdarg.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-10-09 13:05:10 +0200
committerRichard Biener <rguenther@suse.de>2023-10-09 15:17:11 +0200
commit11b8cf1685bb40af5b86653e492e350983025957 (patch)
treee36f31f6385cf45d32d0ec74a519dedc357c70b0 /gcc/tree-stdarg.cc
parent841668aa02a05deca06e68a5931408d970f5c8b2 (diff)
downloadgcc-11b8cf1685bb40af5b86653e492e350983025957.zip
gcc-11b8cf1685bb40af5b86653e492e350983025957.tar.gz
gcc-11b8cf1685bb40af5b86653e492e350983025957.tar.bz2
tree-optimization/111715 - improve TBAA for access paths with pun
The following improves basic TBAA for access paths formed by C++ abstraction where we are able to combine a path from an address-taking operation with a path based on that access using a pun to avoid memory access semantics on the address-taking part. The trick is to identify the point the semantic memory access path starts which allows us to use the alias set of the outermost access instead of only that of the base of this path. PR tree-optimization/111715 * alias.cc (reference_alias_ptr_type_1): When we have a type-punning ref at the base search for the access path part that's still semantically valid. * gcc.dg/tree-ssa/ssa-fre-102.c: New testcase.
Diffstat (limited to 'gcc/tree-stdarg.cc')
0 files changed, 0 insertions, 0 deletions