aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2021-11-23 01:08:55 +0000
committerAndrew Pinski <apinski@marvell.com>2021-11-23 09:55:47 +0000
commit911b633803dcbb298c98777e29fd260834c0d04a (patch)
tree4be00424c1588251e016475423e78b35071d53b1 /gcc/tree-inline.c
parent5e9b973bd60185f221222022f56db7df3d92250e (diff)
downloadgcc-911b633803dcbb298c98777e29fd260834c0d04a.zip
gcc-911b633803dcbb298c98777e29fd260834c0d04a.tar.gz
gcc-911b633803dcbb298c98777e29fd260834c0d04a.tar.bz2
Canonicalize &MEM[ssa_n, CST] to ssa_n p+ CST in fold_stmt_1
This is a new version of the patch to fix PR 102216. Instead of doing the canonicalization inside forwprop, Richi mentioned we should do it inside fold_stmt_1 and that is what this patch does. PR tree-optimization/102216 gcc/ChangeLog: * gimple-fold.c (fold_stmt_1): Add canonicalization of "&MEM[ssa_n, CST]" to "ssa_n p+ CST", note this can only be done if !in_place. gcc/testsuite/ChangeLog: * g++.dg/tree-ssa/pr102216-1.C: New test. * g++.dg/tree-ssa/pr102216-2.C: New test.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions