rs6000.c (rs6000_vect_nonmem): New static var.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 5 May 2017 21:27:54 +0000 (21:27 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Fri, 5 May 2017 21:27:54 +0000 (21:27 +0000)
commit9945596cefaa45d13ecab76b4d97ad021bc3a872
tree2f004c595c0519caa3260985eb7778f48e61ede4
parentba82e6b5c83bd38a14ef50de8d7f92d6314fe2b3
rs6000.c (rs6000_vect_nonmem): New static var.

[gcc]

2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
(rs6000_init_cost): Initialize rs6000_vect_nonmem.
(rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
(rs6000_finish_cost): Avoid vectorizing simple copy loops with
VF=2 that require versioning.

[gcc/testsuite]

2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/versioned-copy-loop.c: New file.

From-SVN: r247671
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/versioned-copy-loop.c [new file with mode: 0644]