Message ID | 20101110232955.GB29412@tyan-ft48-01.lab.bos.redhat.com |
---|---|
State | New |
Headers | show |
On 11/10/2010 03:29 PM, Jakub Jelinek wrote: > PR debug/46150 > * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return > true if expr1->hash != expr2->hash. Ok. r~
--- gcc/tree-ssa-loop-ivopts.c.jj 2010-11-09 13:58:30.000000000 +0100 +++ gcc/tree-ssa-loop-ivopts.c 2010-11-10 21:36:54.000000000 +0100 @@ -834,7 +834,8 @@ htab_inv_expr_eq (const void *ent1, cons const struct iv_inv_expr_ent *expr2 = (const struct iv_inv_expr_ent *)ent2; - return operand_equal_p (expr1->expr, expr2->expr, 0); + return expr1->hash == expr2->hash + && operand_equal_p (expr1->expr, expr2->expr, 0); } /* Hash function for loop invariant expressions. */