diff options
author | alalaw01 <alalaw01@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-02 12:39:31 +0000 |
---|---|---|
committer | alalaw01 <alalaw01@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-02 12:39:31 +0000 |
commit | 638590bab1599301828990c3dae8482cc44033b1 (patch) | |
tree | 85a69d806b80a8d611381bc98bddc6367780a53c /gcc/tree-scalar-evolution.c | |
parent | c50005520621b31eb889d39e293bf579eead6ea7 (diff) | |
download | gcc-638590bab1599301828990c3dae8482cc44033b1.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229660 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r-- | gcc/tree-scalar-evolution.c | 14 |
1 files changed, 0 insertions, 14 deletions
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<<B as A * (1<<B). */ - chrec1 = analyze_scalar_evolution (loop, rhs1); - chrec2 = analyze_scalar_evolution (loop, rhs2); - chrec1 = chrec_convert (type, chrec1, at_stmt); - chrec1 = instantiate_parameters (loop, chrec1); - chrec2 = instantiate_parameters (loop, chrec2); - - chrec2 = fold_build2 (LSHIFT_EXPR, type, - build_int_cst (TREE_TYPE (rhs1), 1), - chrec2); - res = chrec_fold_multiply (type, chrec1, chrec2); - break; - CASE_CONVERT: /* In case we have a truncation of a widened operation that in the truncated type has undefined overflow behavior analyze |