expr.c (expand_expr_real_1): Remove an "if" whose condition is always false.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 6 Dec 2004 18:52:10 +0000 (18:52 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 6 Dec 2004 18:52:10 +0000 (18:52 +0000)
* expr.c (expand_expr_real_1): Remove an "if" whose condition
is always false.

From-SVN: r91786

gcc/ChangeLog
gcc/expr.c

index f5e676e1afe1345f4bbadf44f1f9971677f478fc..303ff714a220f8411192d063fd925cf70f99549b 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * c-gimplify.c (gimplify_c_loop): Improve initial implementations
index b5939ae626d662f011b364bb6fca6b640ae9b774..44b3c4a9fdf90341a97faf928d4bd4a60cca9bee 100644 (file)
@@ -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);
          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)
        {
          expand_expr (TREE_OPERAND (exp, 0), const0_rtx, VOIDmode, modifier);