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: [tree-ssa] Removing redundant loads


On Fri, 30 May 2003 08:13:37 -0600, law@redhat.com wrote:

> The fundamental problem is while iterative_hash_expr knows how to deal with
> commutative operations, avail_expr_hash does not.  Thus we get different
> hashes because the order of operands in the use operands array is different
> between the two statements.  Ugh.  We're probably going to have the same 
> problem with VUSE/VDEFs.

A simple fix would be to combine the hashes for the operands in a
commutative way, such as addition or xor, rather than feed the previous
value back into iterative_hash_*.

Of course, avail_expr_eq will also need to deal with this issue; perhaps
sorting the ops/vops vecs is the way to go.

Jason


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