Re: Fix hashing of multiply and add

2020-11-09 Thread Richard Biener via Gcc-patches
On Mon, Nov 9, 2020 at 11:39 AM Jan Hubicka wrote: > > Hi, > I have noticed that hash_operand computes a hash value that is unused > since two is a local variable. This patch fixes it. > > Bootstrapped/regtested x86_64-linux, OK? OK. You can add DOT_PROD_EXPR to the mix (or handle commutative_t

Fix hashing of multiply and add

2020-11-09 Thread Jan Hubicka
Hi, I have noticed that hash_operand computes a hash value that is unused since two is a local variable. This patch fixes it. Bootstrapped/regtested x86_64-linux, OK? * fold-const.c (operand_compare::hash_operand): Fix hashing of operand 3 of multiply and add. diff --git a/gcc/fo