aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-05-09 08:38:45 +0200
committerRichard Biener <rguenther@suse.de>2025-06-06 09:52:55 +0200
commit44792a6c4253f9a5b322797ef73b9c347c223545 (patch)
tree0d74c270a07d673cf658aec8f4e24fc10826b784 /gcc/tree-ssa-phiopt.cc
parentca8032d6177668ca7f2a6a2e612e126a97ba8c53 (diff)
downloadgcc-44792a6c4253f9a5b322797ef73b9c347c223545.zip
gcc-44792a6c4253f9a5b322797ef73b9c347c223545.tar.gz
gcc-44792a6c4253f9a5b322797ef73b9c347c223545.tar.bz2
rtl-optimization/120182 - wrong-code with RTL DSE and constant addresses
RTL DSE forms store groups from unique invariant bases but that is confused when presented with constant addresses where it assigns one store group per unique address. That causes it to not consider 0x101:QI to alias 0x100:SI. Constant accesses can really alias to every object, in practice they appear for I/O and for access to objects fixed via linker scripts for example. So simply avoid registering a store group for them. PR rtl-optimization/120182 * dse.cc (canon_address): Constant addresses have no separate store group. * gcc.dg/torture/pr120182.c: New testcase. (cherry picked from commit b9434c3db900d5d037fdf2f64149b82800ceadf8)
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions