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] Remove bogus optimization from may_alias_p


2008/10/19 Richard Guenther <rguenther@suse.de>:

> This removes a test where one subtest is always false and the
> other one is always true if unmodifiable_var_p (var) is true,
> which is obviously bogus.  On the trunk this causes false
> TBAA pruning of points-to sets.

This also prunes the case where a regular pointer is made to point to
a read-only variable.  The user gets a warning about mismatched const
settings.  So TBAA should be able to prune this.

You also need a test case.


Diego.


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