diff options
author | Richard Biener <rguenther@suse.de> | 2020-12-09 15:48:36 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-12-09 17:27:25 +0100 |
commit | 84d08255f9f2f7137caf648fcc9dc36101bc893c (patch) | |
tree | 235f02b67a891ab9b3a1cfb2a85ad32dd4ba8b38 /gcc/tree-ssa-phiopt.c | |
parent | 0b37233152b55fb256d7537d7e76067edc52cb88 (diff) | |
download | gcc-84d08255f9f2f7137caf648fcc9dc36101bc893c.zip gcc-84d08255f9f2f7137caf648fcc9dc36101bc893c.tar.gz gcc-84d08255f9f2f7137caf648fcc9dc36101bc893c.tar.bz2 |
tree-optimization/98213 - cache PHI walking result in SM
This avoids exponential work when walking PHIs in loop store motion.
Fails are quickly propagated and thus need no caching.
2020-12-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/98213
* tree-ssa-loop-im.c (sm_seq_valid_bb): Cache successfully
processed PHIs.
(hoist_memory_references): Adjust.
* g++.dg/pr98213.C: New testcase.
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions