re PR target/70021 (Test miscompiled with -O3 option for -march=core-avx2.)
authorJakub Jelinek <jakub@redhat.com>
Thu, 3 Mar 2016 14:32:15 +0000 (15:32 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 3 Mar 2016 14:32:15 +0000 (15:32 +0100)
commit97ecdb46b1261d34e015df1f6eff20e069ca9bbf
treeb2ed079d2bf0a2a11cb909b2bfd5b1e6bf1409a8
parentbc33dc51d905126cec9810da3b1c523ce73d0dc1
re PR target/70021 (Test miscompiled with -O3 option for -march=core-avx2.)

PR target/70021
* tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
the pattern no matter if it is used just by non-pattern, pattern
or mix thereof.
(process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
* tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
oprnd1 def_stmt is in pattern, don't look through it.

* gcc.dg/vect/pr70021.c: New test.
* gcc.target/i386/pr70021.c: New test.

From-SVN: r233940
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr70021.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr70021.c [new file with mode: 0644]
gcc/tree-vect-patterns.c
gcc/tree-vect-stmts.c