This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Remove useless code from dce
- From: Jeffrey A Law <law at redhat dot com>
- To: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Jan 2006 11:47:12 -0700
- Subject: Re: [patch] Remove useless code from dce
- References: <20060130091806.GA23949@atrey.karlin.mff.cuni.cz>
- Reply-to: law at redhat dot com
On Mon, 2006-01-30 at 10:18 +0100, Zdenek Dvorak wrote:
> Hello,
>
> the code in mark_stmt_if_obviously_necessary removed by this patch
> can never be executed, as SSA_NAME_VAR of a real def cannot be
> a global variable.
>
> * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
> unreachable code.
OK.
Thanks,
Jeff