re PR tree-optimization/50208 (ICE: in vinfo_for_stmt at tree-vectorizer.h:598 with...
authorJakub Jelinek <jakub@redhat.com>
Sun, 4 Sep 2011 09:22:38 +0000 (11:22 +0200)
committerIra Rosen <irar@gcc.gnu.org>
Sun, 4 Sep 2011 09:22:38 +0000 (09:22 +0000)
commitad949bcc5e482ddd34bff6a3d01d02d5866155f8
treeecd366ea21d066bd82366c0398e6cd3ddd01160f
parent7cd3603bf9a67ac0048541cc6698c174136e5a37
re PR tree-optimization/50208 (ICE: in vinfo_for_stmt at tree-vectorizer.h:598 with -ftree-vectorize -fno-tree-fre -fno-tree-pre)

        PR tree-optimization/50208
        * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
        argument.  Check that def_stmt is inside the loop.
        (vect_recog_widen_mult_pattern): Update calls to
        vect_handle_widen_mult_by_cons.
        (vect_operation_fits_smaller_type): Check that def_stmt is
        inside the loop.

Co-Authored-By: Ira Rosen <ira.rosen@linaro.org>
From-SVN: r178508
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/no-fre-pre-pr50208.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect.exp
gcc/tree-vect-patterns.c