OSDN Git Service

2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 May 2012 14:56:48 +0000 (14:56 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 May 2012 14:56:48 +0000 (14:56 +0000)
commit2859047d832dd1cd2f46c8a49f8025107524a682
tree66ac212ca9d795b253f8161c8a61df53d7989305
parent3fee8d99c2d6f67f06f9b3c5e91bb9b4262c03a4
2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>

  Backport from mainline:

  2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>

  PR tree-optimization/52633
  * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
  vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
  (vect_recog_over_widening_pattern): Remove handling of code that was
  already detected as over-widening pattern.  Remove special handling
  of "unsigned" cases.  Instead, support general case of conversion
  of the shift result to another type.

  2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>

  * tree-vect-patterns.c (vect_single_imm_use): New function.
  (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
  (vect_recog_over_widening_pattern): Likewise.
  (vect_recog_widen_shift_pattern): Likewise.

  2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>

  PR tree-optimization/52870
  * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
  presumed pattern statement is within the same loop or basic block.

2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>

  Backport from mainline:

  2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>

  PR tree-optimization/52633
  * gcc.dg/vect/vect-over-widen-1.c: Two patterns should now be
  recognized as widening shifts instead of over-widening.
  * gcc.dg/vect/vect-over-widen-1-big-array.c: Likewise.
  * gcc.dg/vect/vect-over-widen-4.c: Likewise.
  * gcc.dg/vect/vect-over-widen-4-big-array.c: Likewise.
  * gcc.target/arm/pr52633.c: New test.

  2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>

  PR tree-optimization/52870
  * gcc.dg/vect/pr52870.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187162 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr52870.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-over-widen-1-big-array.c
gcc/testsuite/gcc.dg/vect/vect-over-widen-1.c
gcc/testsuite/gcc.dg/vect/vect-over-widen-4-big-array.c
gcc/testsuite/gcc.dg/vect/vect-over-widen-4.c
gcc/testsuite/gcc.target/arm/pr52633.c [new file with mode: 0644]
gcc/tree-vect-patterns.c