re PR rtl-optimization/78241 (wrong code with -funroll-loops)
authorPat Haugen <pthaugen@us.ibm.com>
Thu, 10 Nov 2016 18:55:57 +0000 (18:55 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Thu, 10 Nov 2016 18:55:57 +0000 (18:55 +0000)
commit8d34bfa865fb527b6a3569528656e2dc8af592e0
tree223b62a9c66bd4b015116cdb4548e792f4fe43a6
parenta1566696653132892d629525644c2c63da8dab87
re PR rtl-optimization/78241 (wrong code with -funroll-loops)

PR rtl-optimization/78241
* loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter', but
emit initial peel copy if niter expr is not reliable.

* gcc.dg/pr78241.c: New test.

From-SVN: r242047
gcc/ChangeLog
gcc/loop-unroll.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr78241.c [new file with mode: 0644]