diff options
author | Richard Biener <rguenther@suse.de> | 2022-12-11 14:07:34 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-12-11 14:45:30 +0100 |
commit | d13b86f932ff7b9d8f41483fd869c637b67d4dec (patch) | |
tree | d7ea798473c10c4812bd69a4331b03bf4c3dc7a4 /libphobos/src/std/algorithm | |
parent | 26295a069fd312a8be4a6cd96643117383145cc0 (diff) | |
download | gcc-d13b86f932ff7b9d8f41483fd869c637b67d4dec.zip gcc-d13b86f932ff7b9d8f41483fd869c637b67d4dec.tar.gz gcc-d13b86f932ff7b9d8f41483fd869c637b67d4dec.tar.bz2 |
tree-optimization/89317 - missed folding of (p + 4) - &p->d
The PR notices we fail to simplify
a_4 = &x_3(D)->data;
b_5 = x_3(D) + 16;
_1 = b_5 - a_4;
together with the enabler handling ADDR_EXPR leafs in separate
stmts in match.pd the suggested patterns work.
PR tree-optimization/89317
* match.pd ((p + b) - &p->c -> b - offsetof(c)): New patterns.
* gcc.dg/tree-ssa/pr89317.c: New testcase.
Diffstat (limited to 'libphobos/src/std/algorithm')
0 files changed, 0 insertions, 0 deletions