From: Alan Lawrence Date: Mon, 2 Nov 2015 12:39:31 +0000 (+0000) Subject: Revert: tree-scalar-evolution.c: Handle LSHIFT by constant X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35e2be9fc91767188cad3448f8a1434e8461e199;p=gcc.git Revert: tree-scalar-evolution.c: Handle LSHIFT by constant gcc/: tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs as equivalent MULT_EXPRs. gcc/testsuite/: gcc.dg/vect/vect-strided-shift.c: New. From-SVN: r229660 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 966a7f96d35..e293ad22a10 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2015-11-02 Alan Lawrence + + Revert: + 2015-10-27 Alan Lawrence + + PR tree-optimization/65963 + * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs + as equivalent MULT_EXPRs. + 2015-11-02 Thomas Schwinge PR middle-end/68166 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 471b02d5d71..a86920a02ec 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-11-02 Alan Lawrence + + Revert: + 2015-10-27 Alan Lawrence + + * gcc.dg/vect/vect-strided-shift-1.c: New. + 2015-11-01 Kyrylo Tkachov PR target/67929 diff --git a/gcc/testsuite/gcc.dg/vect/vect-strided-shift-1.c b/gcc/testsuite/gcc.dg/vect/vect-strided-shift-1.c deleted file mode 100644 index b1ce2ece170..00000000000 --- a/gcc/testsuite/gcc.dg/vect/vect-strided-shift-1.c +++ /dev/null @@ -1,33 +0,0 @@ -/* PR tree-optimization/65963. */ -#include "tree-vect.h" - -#define N 512 - -int in[2*N], out[N]; - -__attribute__ ((noinline)) void -loop (void) -{ - for (int i = 0; i < N; i++) - out[i] = in[i << 1] + 7; -} - -int -main (int argc, char **argv) -{ - check_vect (); - for (int i = 0; i < 2*N; i++) - { - in[i] = i; - __asm__ volatile ("" : : : "memory"); - } - loop (); - __asm__ volatile ("" : : : "memory"); - for (int i = 0; i < N; i++) - { - if (out[i] != i*2 + 7) - abort (); - } - return 0; -} -/* { dg-final { scan-tree-dump-times "vectorized 1 loops in function" 1 "vect" { target { vect_strided2 } } } } */ diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index 3045c051aa7..bb27b070dba 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -1827,20 +1827,6 @@ interpret_rhs_expr (struct loop *loop, gimple *at_stmt, res = chrec_fold_multiply (type, chrec1, chrec2); break; - case LSHIFT_EXPR: - /* Handle A<