This is the mail archive of the gcc@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]

Re: Type-based aliasing


> 1.  The alias code inherited from gcc2 looks at the form of an address
> to determine whether it is a fixed or variable address, and does
> optimizations based on this determination (the "struct/varying" test,
> a struct at a variable address can not alias a scalar at a fixed
> address).  CSE can change a variable address to a fixed address,
> causing the alias check to falsely report that aliasing is not
> possible.

Maybe we should have another bit in MEMs that tells us when the MEM has
to be considered to be variable for alias analysis purposes.


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