This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] expr.c: Remove an "if" whose condition is always false.


On Sun, 2004-12-05 at 20:24 -0500, Kazu Hirata wrote:
> Hi,
> 
> Attached is a patch to remove an "if" whose condition is always false.
> 
> TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR are lowered by gimplify.c, so the
> condition of the "if" statement removed by this patch is always false.
> 
> I am not adding any new gcc_unreachable because we already have one
> later in the function:
> 
>     case TRUTH_ANDIF_EXPR:
>     case TRUTH_ORIF_EXPR:
>       /* Lowered by gimplify.c.  */
>       gcc_unreachable ();
> 
> Tested on i686-pc-linux-gnu.  OK to apply?
> 
> Kazu Hirata
> 
> 2004-12-06  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	* expr.c (expand_expr_real_1): Remove an "if" whose condition
> 	is always false.
OK.
jeff



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]