adjust BB vectorization dump scanning
authorRichard Biener <rguenther@suse.de>
Thu, 8 Oct 2020 09:53:51 +0000 (11:53 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 8 Oct 2020 11:34:55 +0000 (13:34 +0200)
commit532e882f8872b1b4437e3a0fa8c61d2af2d999d4
tree15aae786bb27e03f48cdcf8eca2ea8da8dff6fc9
parent237f12da4124b91503646b099a8282aa6b251ef9
adjust BB vectorization dump scanning

This adjusts BB vectorization testcases to look for the number of
SLP subgraphs vectorized rather than for the number of basic blocks
we've found opportunities in because followup patches will play
with the granularity we work on, vectorizing multiple basic blocks
at a time.

Together with this, because I noticed when looking at non-obvious
mismatches, I avoid analyzing group-size 1 SLP instances which
result in pointless V1mode vectorizations.

It might be interesting to work on adding sth like
dg-warning to look for -fopt-info-{optimized,missing} so
we could directly annotate (not) vectorized loops instead of
relying on fragile counts.

2020-10-08  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.c (try_vectorize_loop_1): Do not dump
"basic block vectorized".
(pass_slp_vectorize::execute): Likewise.
* tree-vect-slp.c (vect_analyze_slp_instance): Avoid
re-analyzing split single stmts.

* g++.dg/vect/slp-pr50819.cc: Adjust.
* gcc.dg/vect/bb-slp-1.c: Adjust.
* gcc.dg/vect/bb-slp-10.c: Adjust.
* gcc.dg/vect/bb-slp-11.c: Adjust.
* gcc.dg/vect/bb-slp-13.c: Adjust.
* gcc.dg/vect/bb-slp-14.c: Adjust.
* gcc.dg/vect/bb-slp-15.c: Adjust.
* gcc.dg/vect/bb-slp-16.c: Adjust.
* gcc.dg/vect/bb-slp-17.c: Adjust.
* gcc.dg/vect/bb-slp-18.c: Adjust.
* gcc.dg/vect/bb-slp-19.c: Adjust.
* gcc.dg/vect/bb-slp-2.c: Adjust.
* gcc.dg/vect/bb-slp-20.c: Adjust.
* gcc.dg/vect/bb-slp-21.c: Adjust.
* gcc.dg/vect/bb-slp-22.c: Adjust.
* gcc.dg/vect/bb-slp-23.c: Adjust.
* gcc.dg/vect/bb-slp-24.c: Adjust.
* gcc.dg/vect/bb-slp-25.c: Adjust.
* gcc.dg/vect/bb-slp-26.c: Adjust.
* gcc.dg/vect/bb-slp-27.c: Adjust.
* gcc.dg/vect/bb-slp-28.c: Adjust.
* gcc.dg/vect/bb-slp-29.c: Adjust.
* gcc.dg/vect/bb-slp-3.c: Adjust.
* gcc.dg/vect/bb-slp-30.c: Adjust.
* gcc.dg/vect/bb-slp-31.c: Adjust.
* gcc.dg/vect/bb-slp-34.c: Adjust.
* gcc.dg/vect/bb-slp-35.c: Adjust.
* gcc.dg/vect/bb-slp-36.c: Adjust.
* gcc.dg/vect/bb-slp-38.c: Adjust.
* gcc.dg/vect/bb-slp-4.c: Adjust.
* gcc.dg/vect/bb-slp-45.c: Adjust.
* gcc.dg/vect/bb-slp-46.c: Adjust.
* gcc.dg/vect/bb-slp-48.c: Adjust.
* gcc.dg/vect/bb-slp-5.c: Adjust.
* gcc.dg/vect/bb-slp-6.c: Adjust.
* gcc.dg/vect/bb-slp-7.c: Adjust.
* gcc.dg/vect/bb-slp-8.c: Adjust.
* gcc.dg/vect/bb-slp-8a.c: Adjust.
* gcc.dg/vect/bb-slp-8b.c: Adjust.
* gcc.dg/vect/bb-slp-9.c: Adjust.
* gcc.dg/vect/bb-slp-div-2.c: Adjust.
* gcc.dg/vect/bb-slp-over-widen-1.c: Adjust.
* gcc.dg/vect/bb-slp-over-widen-2.c: Adjust.
* gcc.dg/vect/bb-slp-pattern-2.c: Adjust.
* gcc.dg/vect/bb-slp-pow-1.c: Adjust.
* gcc.dg/vect/bb-slp-pr58135.c: Adjust.
* gcc.dg/vect/bb-slp-pr65935.c: Adjust.
* gcc.dg/vect/bb-slp-pr78205.c: Adjust.
* gcc.dg/vect/bb-slp-pr81635-1.c: Adjust.
* gcc.dg/vect/bb-slp-pr81635-3.c: Adjust.
* gcc.dg/vect/bb-slp-pr95839-2.c: Adjust.
* gcc.dg/vect/bb-slp-pr95839.c: Adjust.
* gcc.dg/vect/bb-slp-pr95866.c: Adjust.
* gcc.dg/vect/bb-slp-subgroups-1.c: Adjust.
* gcc.dg/vect/bb-slp-subgroups-2.c: Adjust.
* gcc.dg/vect/bb-slp-subgroups-3.c: Adjust.
* gcc.dg/vect/fast-math-bb-slp-call-1.c: Adjust.
* gcc.dg/vect/no-tree-reassoc-bb-slp-12.c: Adjust.
* gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c: Adjust.
* gfortran.dg/vect/pr62283-2.f: Adjust.
* gcc.target/i386/pr68961.c: Adjust.
* gcc.target/i386/pr84101.c: Adjust.
* gcc.dg/vect/bb-slp-pr81635-2.c: Adjust.
* gcc.dg/vect/bb-slp-pr81635-4.c: Adjust.
* gcc.dg/vect/fast-math-bb-slp-call-2.c: Adjust.
* gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a.c: Adjust.
* gcc.dg/vect/costmodel/x86_64/costmodel-vect-slp.c: Adjust.
* gcc.dg/vect/bb-slp-div-1.c: Adjust.
* gcc.dg/vect/bb-slp-pr90006.c: Adjust.
* g++.dg/vect/slp-pr50413.cc: Adjust.
72 files changed:
gcc/testsuite/g++.dg/vect/slp-pr50413.cc
gcc/testsuite/g++.dg/vect/slp-pr50819.cc
gcc/testsuite/gcc.dg/vect/bb-slp-1.c
gcc/testsuite/gcc.dg/vect/bb-slp-10.c
gcc/testsuite/gcc.dg/vect/bb-slp-11.c
gcc/testsuite/gcc.dg/vect/bb-slp-13.c
gcc/testsuite/gcc.dg/vect/bb-slp-14.c
gcc/testsuite/gcc.dg/vect/bb-slp-15.c
gcc/testsuite/gcc.dg/vect/bb-slp-16.c
gcc/testsuite/gcc.dg/vect/bb-slp-17.c
gcc/testsuite/gcc.dg/vect/bb-slp-18.c
gcc/testsuite/gcc.dg/vect/bb-slp-19.c
gcc/testsuite/gcc.dg/vect/bb-slp-2.c
gcc/testsuite/gcc.dg/vect/bb-slp-20.c
gcc/testsuite/gcc.dg/vect/bb-slp-21.c
gcc/testsuite/gcc.dg/vect/bb-slp-22.c
gcc/testsuite/gcc.dg/vect/bb-slp-23.c
gcc/testsuite/gcc.dg/vect/bb-slp-24.c
gcc/testsuite/gcc.dg/vect/bb-slp-25.c
gcc/testsuite/gcc.dg/vect/bb-slp-26.c
gcc/testsuite/gcc.dg/vect/bb-slp-27.c
gcc/testsuite/gcc.dg/vect/bb-slp-28.c
gcc/testsuite/gcc.dg/vect/bb-slp-29.c
gcc/testsuite/gcc.dg/vect/bb-slp-3.c
gcc/testsuite/gcc.dg/vect/bb-slp-30.c
gcc/testsuite/gcc.dg/vect/bb-slp-31.c
gcc/testsuite/gcc.dg/vect/bb-slp-34.c
gcc/testsuite/gcc.dg/vect/bb-slp-35.c
gcc/testsuite/gcc.dg/vect/bb-slp-36.c
gcc/testsuite/gcc.dg/vect/bb-slp-38.c
gcc/testsuite/gcc.dg/vect/bb-slp-4.c
gcc/testsuite/gcc.dg/vect/bb-slp-45.c
gcc/testsuite/gcc.dg/vect/bb-slp-46.c
gcc/testsuite/gcc.dg/vect/bb-slp-48.c
gcc/testsuite/gcc.dg/vect/bb-slp-5.c
gcc/testsuite/gcc.dg/vect/bb-slp-6.c
gcc/testsuite/gcc.dg/vect/bb-slp-7.c
gcc/testsuite/gcc.dg/vect/bb-slp-8.c
gcc/testsuite/gcc.dg/vect/bb-slp-8a.c
gcc/testsuite/gcc.dg/vect/bb-slp-8b.c
gcc/testsuite/gcc.dg/vect/bb-slp-9.c
gcc/testsuite/gcc.dg/vect/bb-slp-div-1.c
gcc/testsuite/gcc.dg/vect/bb-slp-div-2.c
gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-1.c
gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-2.c
gcc/testsuite/gcc.dg/vect/bb-slp-pattern-2.c
gcc/testsuite/gcc.dg/vect/bb-slp-pow-1.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr58135.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr65935.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr78205.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr81635-1.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr81635-2.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr81635-3.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr81635-4.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr90006.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr95839-2.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr95839.c
gcc/testsuite/gcc.dg/vect/bb-slp-pr95866.c
gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-1.c
gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-2.c
gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c
gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a.c
gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-slp.c
gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c
gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c
gcc/testsuite/gcc.dg/vect/no-tree-reassoc-bb-slp-12.c
gcc/testsuite/gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c
gcc/testsuite/gcc.target/i386/pr68961.c
gcc/testsuite/gcc.target/i386/pr84101.c
gcc/testsuite/gfortran.dg/vect/pr62283-2.f
gcc/tree-vect-slp.c
gcc/tree-vectorizer.c