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] fix PR33961, load/store/nontrap confusion


Hi,

On Wed, 31 Oct 2007, Andrew Pinski wrote:

> On 10/31/07, Michael Matz <matz@suse.de> wrote:
> >    tree n = ((struct name_to_bb *)p)->ssa_name;
> > -  return htab_hash_pointer (n);
> > +  return htab_hash_pointer (n) ^ ((struct name_to_bb *)p)->store;
> 
> If this is a real SSA name, can't you just use the SSA name's version
> number instead of using a hash based on the pointer value?

Yes, but eventually I wanted to also store other things than just SSA 
names in the hashtable so I wrote this extensible.


Ciao,
Michael.


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