This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Another case of DCE deleting live code
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: dberlin at dberlin dot org
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 9 Nov 04 18:52:17 EST
- Subject: Re: Another case of DCE deleting live code
> Yes. The tag_set we compute in get_tmt_for must be exactly what
> get_alias_set returns. We use that to determine which pointers get the
> same alias set and other checks.
Why isn't get_alias_set returning 0 for types with that flag set, which
would avoid anything but get_alias_set being modified?
Because the alias set of the *type* isn't zero. What's zero is the alias
set of anything *dereferenced* via the type.