]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-vect-patterns.c (vect_recog_dot_prod_pattern): Use GIMPLE_STMT_OPERAND.
authorIra Rosen <irar@il.ibm.com>
Mon, 11 Dec 2006 07:54:35 +0000 (07:54 +0000)
committerIra Rosen <irar@gcc.gnu.org>
Mon, 11 Dec 2006 07:54:35 +0000 (07:54 +0000)
* tree-vect-patterns.c (vect_recog_dot_prod_pattern): Use
GIMPLE_STMT_OPERAND.
* tree-vect-transform.c (vect_permute_store_chain): Likewise.
(vect_setup_realignment): Likewise.

From-SVN: r119730

gcc/ChangeLog
gcc/tree-vect-patterns.c
gcc/tree-vect-transform.c

index 23dfc078da958e8693653aacea252a2155eb6581..b4c1f1397e0a91479748090bb53b8687d1ad80ac 100644 (file)
@@ -1,3 +1,10 @@
+2006-12-11  Ira Rosen  <irar@il.ibm.com>
+
+       * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Use 
+       GIMPLE_STMT_OPERAND.
+       * tree-vect-transform.c (vect_permute_store_chain): Likewise.
+       (vect_setup_realignment): Likewise.
+
 2006-12-11  Sa Liu  <saliu@de.ibm.com>
            Ben Elliston  <bje@au.ibm.com>
 
index cb5d4e72d2a5732a99597ea63412f09cea7c2ed8..f9d3de6d4ebcda92ce2fa188cbecb403bf2b59c5 100644 (file)
@@ -204,7 +204,7 @@ vect_recog_dot_prod_pattern (tree last_stmt, tree *type_in, tree *type_out)
       /* Has been detected as widening-summation?  */
 
       stmt = STMT_VINFO_RELATED_STMT (stmt_vinfo);
-      expr = TREE_OPERAND (stmt, 1);
+      expr = GIMPLE_STMT_OPERAND (stmt, 1);
       type = TREE_TYPE (expr);
       if (TREE_CODE (expr) != WIDEN_SUM_EXPR)
         return NULL;
index 53380b27e81c1ffe6f82533c43da97609c942f7c..56c7adee0f3ec0a3667e3ee753e77891bf48bcbf 100644 (file)
@@ -2575,7 +2575,7 @@ vect_permute_store_chain (VEC(tree,heap) *dr_chain,
   unsigned int j;
   VEC(tree,heap) *first, *second;
   
-  scalar_dest = TREE_OPERAND (stmt, 0);
+  scalar_dest = GIMPLE_STMT_OPERAND (stmt, 0);
   first = VEC_alloc (tree, heap, length/2);
   second = VEC_alloc (tree, heap, length/2);
 
@@ -2941,7 +2941,7 @@ vect_setup_realignment (tree stmt, block_stmt_iterator *bsi,
   loop_vec_info loop_vinfo = STMT_VINFO_LOOP_VINFO (stmt_info);
   struct loop *loop = LOOP_VINFO_LOOP (loop_vinfo);
   edge pe = loop_preheader_edge (loop);
-  tree scalar_dest = TREE_OPERAND (stmt, 0);
+  tree scalar_dest = GIMPLE_STMT_OPERAND (stmt, 0);
   tree vec_dest;
   tree init_addr;
   tree inc;