diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2005-04-27 16:50:19 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2005-04-27 16:50:19 +0000 |
commit | dd248a9aafac30bfca5e909ea00894cb3f9b241f (patch) | |
tree | 0cf9ba52dca8e2d3ddd9b5b6daa148925d1b75af | |
parent | 03eb45c1491c6de0a7857fe2cac08c4bcd9a33f2 (diff) | |
download | gcc-dd248a9aafac30bfca5e909ea00894cb3f9b241f.zip gcc-dd248a9aafac30bfca5e909ea00894cb3f9b241f.tar.gz gcc-dd248a9aafac30bfca5e909ea00894cb3f9b241f.tar.bz2 |
tree-complex.c (expand_vector_operations_1): Do not build VIEW_CONVERT_EXPR's for the lhs.
2005-04-27 Paolo Bonzini <bonzini@gnu.org>
* tree-complex.c (expand_vector_operations_1): Do not build
VIEW_CONVERT_EXPR's for the lhs.
From-SVN: r98853
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-complex.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 01947cd..2f0dfcb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-04-27 Paolo Bonzini <bonzini@gnu.org> + + * tree-complex.c (expand_vector_operations_1): Do not build + VIEW_CONVERT_EXPR's for the lhs. + 2005-04-27 Nathan Sidwell <nathan@codesourcery.com> * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c index 98b6c56..97951d0 100644 --- a/gcc/tree-complex.c +++ b/gcc/tree-complex.c @@ -980,10 +980,11 @@ expand_vector_operations_1 (block_stmt_iterator *bsi) else { /* Build a conversion; VIEW_CONVERT_EXPR is very expensive unless T will - be stored in memory anyway, so prefer NOP_EXPR. Also, perform the - VIEW_CONVERT_EXPR on the left side of the assignment. */ + be stored in memory anyway, so prefer NOP_EXPR. We should also try + performing the VIEW_CONVERT_EXPR on the left side of the + assignment. */ if (TYPE_MODE (TREE_TYPE (rhs)) == BLKmode) - *p_lhs = build1 (VIEW_CONVERT_EXPR, TREE_TYPE (rhs), lhs); + *p_rhs = gimplify_build1 (bsi, VIEW_CONVERT_EXPR, TREE_TYPE (lhs), rhs); else *p_rhs = gimplify_build1 (bsi, NOP_EXPR, TREE_TYPE (lhs), rhs); } |