Vectorize mult expressions with power 2 constants via shift, for targets has no vecto...
authorVenkataramanan Kumar <venkataramanan.kumar@amd.com>
Thu, 6 Aug 2015 12:00:57 +0000 (12:00 +0000)
committerVenkataramanan Kumar <vekumar@gcc.gnu.org>
Thu, 6 Aug 2015 12:00:57 +0000 (12:00 +0000)
commit47486460a94e656b9c4da3e8f9dc3be8c0b9e657
tree3fa68dfa2871615959ae1f5a18890421157f045b
parentb0b0e68ca0b48eebf773696d9c9a099222592c97
Vectorize mult expressions with power 2 constants via shift, for targets has no vector multiplication support.

2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>

* tree-vect-patterns.c (vect_recog_mult_pattern): New function
for vectorizing multiplication patterns.
* tree-vectorizer.h: Adjust the number of patterns.

2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>

* gcc.dg/vect/vect-mult-pattern-1.c: New test.
* gcc.dg/vect/vect-mult-pattern-2.c: New test.

From-SVN: r226675
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-mult-pattern-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-mult-pattern-2.c [new file with mode: 0644]
gcc/tree-vect-patterns.c
gcc/tree-vectorizer.h