diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-11-16 00:05:30 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-11-16 00:05:30 +0000 |
commit | a62346841c154b7ca97071aa107a690c051e89e5 (patch) | |
tree | 90fa1ecf74451155046ce19e84a431531ea5ed2d /gcc/tree-vectorizer.c | |
parent | 88f862a9e05cf60971367fe6a25c5f013218762d (diff) | |
download | gcc-a62346841c154b7ca97071aa107a690c051e89e5.zip gcc-a62346841c154b7ca97071aa107a690c051e89e5.tar.gz gcc-a62346841c154b7ca97071aa107a690c051e89e5.tar.bz2 |
tree-cfg.c (verify_expr): Replace TREE_OPERAND with COND_EXPR_COND.
* tree-cfg.c (verify_expr): Replace TREE_OPERAND with
COND_EXPR_COND.
* tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
* tree-ssa-dom.c (thread_across_edge): Likewise.
* tree-vectorizer.c (vect_transform_loop_bound): Replace
TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
COND_EXPR_ELSE.
From-SVN: r90703
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r-- | gcc/tree-vectorizer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 14e455d..f258e46 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -2860,7 +2860,7 @@ vect_transform_loop_bound (loop_vec_info loop_vinfo, tree niters) gcc_assert (bsi_stmt (loop_exit_bsi) == orig_cond_expr); /* new loop exit test: */ - lb_type = TREE_TYPE (TREE_OPERAND (TREE_OPERAND (orig_cond_expr, 0), 1)); + lb_type = TREE_TYPE (TREE_OPERAND (COND_EXPR_COND (orig_cond_expr), 1)); if (!symbol_niters) new_loop_bound = fold_convert (lb_type, build_int_cst (unsigned_type_node, @@ -2876,7 +2876,8 @@ vect_transform_loop_bound (loop_vec_info loop_vinfo, tree niters) indx_after_incr, new_loop_bound); cond_stmt = build3 (COND_EXPR, TREE_TYPE (orig_cond_expr), cond, - TREE_OPERAND (orig_cond_expr, 1), TREE_OPERAND (orig_cond_expr, 2)); + COND_EXPR_THEN (orig_cond_expr), + COND_EXPR_ELSE (orig_cond_expr)); bsi_insert_before (&loop_exit_bsi, cond_stmt, BSI_SAME_STMT); |