Juzhe-Zhong aea337cf74 RISC-V: Fix inconsistency among all vectorization hooks
This patches 200+ ICEs exposed by testing with rv64gc_zve64d.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112694

The rootcause is we disallow poly (1,1) size vectorization in preferred_simd_mode.
with this following code:
-      if (TARGET_MIN_VLEN < 128 && TARGET_MAX_LMUL < RVV_M2)
-       return word_mode;

However, we allow poly (1,1) size in hook:
TARGET_VECTORIZE_RELATED_MODE
TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES

And also enables it in all vectorization patterns.

I was adding this into preferred_simd_mode because poly (1,1) size mode will cause
ICE in can_duplicate_and_interleave_p.

So, the alternative approach we need to block poly (1,1) size in both TARGET_VECTORIZE_RELATED_MODE
and TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES hooks and all vectorization patterns.
which is ugly approach and too much codes change.

Now, after investivation, I find it's nice that loop vectorizer can automatically block poly (1,1)
size vector in interleave vectorization with this commit:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=730909fa858bd691095bc23655077aa13b7941a9

So, we don't need to worry about ICE in interleave vectorization and allow poly (1,1) size vector
in vectorization which fixes 200+ ICEs in zve64d march.

	PR target/112694

gcc/ChangeLog:

	* config/riscv/riscv-v.cc (preferred_simd_mode): Allow poly_int (1,1) vectors.

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/rvv/autovec/pr112694-1.c: New test.
2023-11-24 21:28:02 +08:00
2023-06-23 00:16:38 +00:00
2023-11-14 12:23:39 +00:00
2023-11-24 00:17:53 +00:00
2023-11-23 00:18:14 +00:00
2023-04-26 00:17:46 +00:00
2023-11-04 00:16:45 +00:00
2023-11-08 00:17:35 +00:00
2023-08-08 00:17:37 +00:00
2023-11-14 12:23:39 +00:00
2023-10-23 00:16:43 +00:00
2023-11-17 00:17:33 +00:00
2023-06-16 00:17:18 +00:00
2023-06-16 00:17:18 +00:00
2023-10-27 00:17:12 +00:00
2023-11-24 00:17:53 +00:00
2023-11-09 00:17:25 +00:00
2023-11-14 12:23:39 +00:00
2023-11-23 00:18:14 +00:00
2023-11-16 00:17:42 +00:00
2023-10-23 00:16:43 +00:00
2023-10-23 00:16:43 +00:00
2023-11-22 00:17:52 +00:00
2023-10-24 00:17:34 +00:00
2023-11-22 00:17:52 +00:00
2023-10-23 00:16:43 +00:00
2023-11-24 00:17:53 +00:00
2023-10-23 00:16:43 +00:00
2023-10-23 00:16:43 +00:00
2023-11-14 12:23:39 +00:00
2023-10-23 00:16:43 +00:00
2023-11-14 00:47:11 +01:00
2023-11-24 00:17:53 +00:00
2021-12-21 09:10:57 +01:00
2023-11-14 00:47:11 +01:00
2023-11-14 00:47:11 +01:00
2023-11-14 00:47:11 +01:00
2023-10-05 12:00:39 -04:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 2.7 GiB
Languages
C++ 30.7%
C 30.1%
Ada 14.4%
D 6.1%
Go 5.7%
Other 12.5%