Commit 4626c433 by Richard Kenner Committed by Richard Kenner

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
parent 9e51aaf5
2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 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 * gimplify.c (gimplify_compound_lval): Check for no handled
operations, rather than checking for explicit list of nodes. operations, rather than checking for explicit list of nodes.
(is_gimple_addr_expr_arg_or_indirect): New function. (is_gimple_addr_expr_arg_or_indirect): New function.
......
...@@ -978,6 +978,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags, voperands_t prev_vops) ...@@ -978,6 +978,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags, voperands_t prev_vops)
case TRUTH_NOT_EXPR: case TRUTH_NOT_EXPR:
case BIT_FIELD_REF: case BIT_FIELD_REF:
case VIEW_CONVERT_EXPR:
do_unary: do_unary:
get_expr_operands (stmt, &TREE_OPERAND (expr, 0), flags, prev_vops); get_expr_operands (stmt, &TREE_OPERAND (expr, 0), flags, prev_vops);
return; return;
......
...@@ -709,7 +709,7 @@ DEFTREECODE (NON_LVALUE_EXPR, "non_lvalue_expr", '1', 1) ...@@ -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 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 this case and GCC must abort if it could not do the operation without
generating insns. */ 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. /* Represents something we computed once and will use multiple times.
First operand is that expression. After it is evaluated once, it First operand is that expression. After it is evaluated once, it
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment