-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest a GCC/LLVM compatible compile option for RVV auto-vectorization #33
Comments
@kito-cheng Can you help me with that ? |
LLVM has an option to specify that We'll need to clarify those case if we want to define a common option. |
Tag some LLVM developer here to get some feedback about this idea: @topperc @asb @rofirrim @preames @zhongjuzhe is the major contributor of the vector support for RISC-V GCC, including intrinsic and vectorizer, he already finish first version of auto vectorization on their downstream GCC, and we are planing to support vectorizer on GCC trunk in the second half of 2023, |
Prefer i64 use m2 && i32 use m1 when -mrvv-vector-lmul=m2 |
I, strongly, think we're too early in having this discussion. If you have specific examples where you think the default code generation is sub-optimal, please file bugs. Only once we've implemented reasonable code quality in both compilers does it start making sense to provide compatible forcing options. Also, any option prefixed with -mllvm is explicitly internal, and is not stable. Use at your own risk, you will get no support if that breaks. |
I'm guessing we can restart this conversation. cfr: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112651 TL/DR: in gcc we currently use --param to convey lmul, but that is more of a hint to the optimizer and not really a mandate for it. For latter the preferred way is to use a -mXX toggle. |
Is it possible that we can have a GCC/LLVM compatible compile option to specifiy LMUL in auto-vectorization?
For example, -mriscv-vector-lmul or -mrvv-vector-lmul ?
Thanks.
The text was updated successfully, but these errors were encountered: