diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-11 08:09:46 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-11 08:09:46 +0000 |
commit | 160ecf5230cac526be9fe8cca8fa8b54c5af8f33 (patch) | |
tree | 3709098b861234eee23d2fe4fd57fe909dc54226 /gcc/tree-ssa-loop-ivopts.c | |
parent | 7a20d15182eb443226afd79fa81f5cce3e635c0c (diff) | |
download | gcc-160ecf5230cac526be9fe8cca8fa8b54c5af8f33.tar.gz |
PR debug/46150
* tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
true if expr1->hash != expr2->hash.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166595 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index ab2e67af2ae..59e2fef5976 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -834,7 +834,8 @@ htab_inv_expr_eq (const void *ent1, const void *ent2) 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. */ |