This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question on cfg_remove_useles_stmts_bb
- From: Jeffrey A Law <law at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 17 Aug 2004 00:02:01 -0600
- Subject: Re: Question on cfg_remove_useles_stmts_bb
- Organization: Red Hat, Inc
- References: <10408141155.AA20080@vlsi1.ultra.nyu.edu>
- Reply-to: law at redhat dot com
On Sat, 2004-08-14 at 05:55, Richard Kenner wrote:
> How does this get away with not checking that VAL has been clobbered?
?!? It certainly checks whether or not the value is clobbered.
/* Invalidate the var if we encounter something that could modify
it. */
if (TREE_CODE (stmt) == ASM_EXPR
|| (TREE_CODE (stmt) == MODIFY_EXPR
&& TREE_OPERAND (stmt, 0) == var))
return;
Jeff