tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.

* tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
	* tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.

From-SVN: r85111
This commit is contained in:
Richard Kenner 2004-07-24 01:35:04 +00:00 committed by Richard Kenner
parent 9e51aaf570
commit 4626c43318
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
* tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
* gimplify.c (gimplify_compound_lval): Check for no handled
operations, rather than checking for explicit list of nodes.
(is_gimple_addr_expr_arg_or_indirect): New function.

View File

@ -978,6 +978,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags, voperands_t prev_vops)
case TRUTH_NOT_EXPR:
case BIT_FIELD_REF:
case VIEW_CONVERT_EXPR:
do_unary:
get_expr_operands (stmt, &TREE_OPERAND (expr, 0), flags, prev_vops);
return;

View File

@ -709,7 +709,7 @@ DEFTREECODE (NON_LVALUE_EXPR, "non_lvalue_expr", '1', 1)
case no actual data motion may occur. TREE_ADDRESSABLE will be set in
this case and GCC must abort if it could not do the operation without
generating insns. */
DEFTREECODE (VIEW_CONVERT_EXPR, "view_convert_expr", '1', 1)
DEFTREECODE (VIEW_CONVERT_EXPR, "view_convert_expr", 'r', 1)
/* Represents something we computed once and will use multiple times.
First operand is that expression. After it is evaluated once, it