This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix vectorizer ICE when building Mozilla


On Sun, Apr 22, 2012 at 4:04 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
> Hi,
> when building Mozilla we ICE in expr_invariant_in_loop_p walking ARRAY_REF, because one of the
> fields is NULL (that is allowed)
>
> Bootstrapped/regtested x86_64-linux, OK?
>
> Honza
>
> Â Â Â Â* tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL tree refs.
> Index: tree-ssa-loop-ivopts.c
> ===================================================================
> *** tree-ssa-loop-ivopts.c   Â(revision 186688)
> --- tree-ssa-loop-ivopts.c   Â(working copy)
> *************** expr_invariant_in_loop_p (struct loop *l
> *** 1411,1417 ****
>
> Â Âlen = TREE_OPERAND_LENGTH (expr);
> Â Âfor (i = 0; i < len; i++)
> ! Â Â if (!expr_invariant_in_loop_p (loop, TREE_OPERAND (expr, i)))
> Â Â Â Âreturn false;
>
> Â Âreturn true;
> --- 1411,1417 ----
>
> Â Âlen = TREE_OPERAND_LENGTH (expr);
> Â Âfor (i = 0; i < len; i++)
> ! Â Â if (TREE_OPERAND (expr, i) && !expr_invariant_in_loop_p (loop, TREE_OPERAND (expr, i)))

Long lines, but I think otherwise this is obvious.

Thanks,
Andrew Pinski

> Â Â Â Âreturn false;
>
> Â Âreturn true;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]