Commit c4cfdac0 by Kazu Hirata Committed by Kazu Hirata

expr.c (expand_expr_real_1): Remove an "if" whose condition is always false.

	* expr.c (expand_expr_real_1): Remove an "if" whose condition
	is always false.

From-SVN: r91786
parent 6e07ee6d
2004-12-06 Kazu Hirata <kazu@cs.umass.edu>
* expr.c (expand_expr_real_1): Remove an "if" whose condition
is always false.
2004-12-06 Roger Sayle <roger@eyesopen.com> 2004-12-06 Roger Sayle <roger@eyesopen.com>
* c-gimplify.c (gimplify_c_loop): Improve initial implementations * c-gimplify.c (gimplify_c_loop): Improve initial implementations
......
...@@ -6507,12 +6507,6 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, ...@@ -6507,12 +6507,6 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
expand_expr (TREE_OPERAND (exp, 1), const0_rtx, VOIDmode, modifier); expand_expr (TREE_OPERAND (exp, 1), const0_rtx, VOIDmode, modifier);
return const0_rtx; return const0_rtx;
} }
else if ((code == TRUTH_ANDIF_EXPR || code == TRUTH_ORIF_EXPR)
&& ! TREE_SIDE_EFFECTS (TREE_OPERAND (exp, 1)))
/* If the second operand has no side effects, just evaluate
the first. */
return expand_expr (TREE_OPERAND (exp, 0), const0_rtx, VOIDmode,
modifier);
else if (code == BIT_FIELD_REF) else if (code == BIT_FIELD_REF)
{ {
expand_expr (TREE_OPERAND (exp, 0), const0_rtx, VOIDmode, modifier); expand_expr (TREE_OPERAND (exp, 0), const0_rtx, VOIDmode, modifier);
......
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