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 02/89] Introduce gimple_switch and use it in various places


> --- a/gcc/tree-loop-distribution.c
> +++ b/gcc/tree-loop-distribution.c
> @@ -687,8 +687,9 @@ generate_loops_for_partition (struct loop *loop, partition_t partition,
>  		}
>  	      else if (gimple_code (stmt) == GIMPLE_SWITCH)
>  		{
> +		  gimple_switch switch_stmt = stmt->as_a_gimple_switch ();

maybe it would make more sense to do
else if (gimple_switch switch_stmt = stmt->dyn_cast_gimple_switch ())
?

Trev

Attachment: signature.asc
Description: Digital signature


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