re PR tree-optimization/28364 (poor optimization choices when iterating over a std...
authorRichard Biener <rguenther@suse.de>
Mon, 30 Apr 2018 07:23:36 +0000 (07:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 30 Apr 2018 07:23:36 +0000 (07:23 +0000)
commit2925cd9d1c9d9e03a55f9f67ab81ead94f9e4f6c
tree4f196e848680c5da214d63071868dd5be3bdf690
parent03b42a71d9d88029dea5928c3053881b092d6549
re PR tree-optimization/28364 (poor optimization choices when iterating over a std::string (probably not c++-specific))

2018-04-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/28364
PR tree-optimization/85275
* tree-ssa-loop-ch.c (ch_base::copy_headers): Stop after
copying first exit test.

* gcc.dg/tree-ssa/copy-headers-5.c: New testcase.
* gcc.dg/tree-ssa/predcom-8.c: Likewise.
* gcc.dg/tree-ssa/cunroll-13.c: Rewrite to gimple testcase.
* gcc.dg/tree-ssa/ivopt_mult_1.c: XFAIL.
* gcc.dg/tree-ssa/ivopt_mult_1g.c: Add gimple variant that
still passes.
* gcc.dg/tree-ssa/ivopt_mult_2.c: XFAIL.
* gcc.dg/tree-ssa/ivopt_mult_2g.c: Add gimple variant that
still passes.
* gcc.dg/tree-ssa/ssa-dom-thread-7.c: Adjust.
* gcc.dg/tree-ssa/20030710-1.c: Likewise.
* gcc.dg/tree-ssa/20030711-1.c: Likewise.

From-SVN: r259754
13 files changed:
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c
gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c
gcc/testsuite/gcc.dg/tree-ssa/copy-headers-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/cunroll-13.c
gcc/testsuite/gcc.dg/tree-ssa/ivopt_mult_1.c
gcc/testsuite/gcc.dg/tree-ssa/ivopt_mult_1g.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ivopt_mult_2.c
gcc/testsuite/gcc.dg/tree-ssa/ivopt_mult_2g.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/predcom-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-7.c
gcc/tree-ssa-loop-ch.c