This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, vectorizer]: Fix PR tree-optimization/33742, Segfault in vectorizable_operation
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Uros Bizjak" <ubizjak at gmail dot com>
- Cc: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 12 Oct 2007 10:28:01 +0200
- Subject: Re: [PATCH, vectorizer]: Fix PR tree-optimization/33742, Segfault in vectorizable_operation
- References: <5787cf470710120116m78658942g64069821b666361d@mail.gmail.com>
On 10/12/07, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
> Attached patch introduces check for unsupported scalar types, where
> get_vectype_for_scalar_type() returns NULL_TREE.
>
> The same check was introduced in vectorizable_call(), to prevent
> future failures due to the same cause.
>
> (BTW: I belive that this patch also fixes PEAK 164.gzip failure at
> http://vmakarov.fedorapeople.org/spec/index.html)
>
> Patch was bootstrapped/regtested on i686-pc-linux-gnu.
>
> OK for mainline?
Ok.
Thanks,
Richard.
> 2007-10-12 Uros Bizjak <ubizjak@gmail.com>
>
> PR tree-optimization/33742
> * tree-vect-transform.c (vectorizable_operation): Return false
> if get_vectype_for_scalar_type for scalar_dest can't be determined.
> (vectorizable_call): Same for rhs_type and lhs_type.
>
> testsuite/ChangeLog:
>
> 2007-10-12 Uros Bizjak <ubizjak@gmail.com>
>
> PR tree-optimization/33742
> * gcc.dg/pr33742.c: New testcase.
>
> Uros.
>
>