tree-optimization/96548 - fix failure to recompute RPO after CFG change
authorRichard Biener <rguenther@suse.de>
Tue, 25 Aug 2020 08:59:24 +0000 (10:59 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 25 Aug 2020 12:11:49 +0000 (14:11 +0200)
commit660b5c10dc04988b02a2c3f6baed013340af3ef8
tree87ad77984f83a57eefbe2972c05f3f65932bc719
parenta5b15fcb954ba63d58f0daa700281aba33b5f24a
tree-optimization/96548 - fix failure to recompute RPO after CFG change

This recomputes RPO after store-motion changes the CFG.

2020-08-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/96548
PR tree-optimization/96760
* tree-ssa-loop-im.c (tree_ssa_lim): Recompute RPO after
store-motion.

* gcc.dg/torture/pr96548.c: New testcase.
* gcc.dg/torture/pr96760.c: Likewise.
gcc/testsuite/gcc.dg/torture/pr96548.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr96760.c [new file with mode: 0644]
gcc/tree-ssa-loop-im.c