This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tuples] Fix {set_,}vinfo_for_stmt (take 2)
On Tue, Jul 1, 2008 at 09:08, Jakub Jelinek <jakub@redhat.com> wrote:
> 2008-07-01 Jakub Jelinek <jakub@redhat.com>
>
> * tree-vectorizer.h (vinfo_for_stmt): Use htab_find_slot_with_hash.
> (set_vinfo_for_stmt): Likewise. If info is NULL, delete entry from
> hash table.
> * tree-vectorizer.c (stmt_vec_info_eq, stmt_vec_info_hash): New
> functions.
> (init_stmt_vec_info_htab): Use them instead of htab_hash_pointer
> and htab_eq_pointer.
> (free_stmt_vec_info): Free stmt_info only after set_vinfo_for_stmt
> call.
OK. Thanks for catching and fixing this.
Diego.