-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Compilation failure with RISCV+RVV vectors #8455
Comments
Failure is in CodeGen_LLVM::shuffle_vectors(): the types don't match. But the real issue seems to be in |
OK, at least one of the issues here is that slice_vector isn't honoring its contract for non-fixed vectors. If you call EDIT: I guess you could argue that the result is 'correct', but some downstream code doesn't know how to deal with this; case in point, if you are calling EDIT #2: Moving the assert to the end of the function (after we've normalized both vectors to fixed) looks seductive), and indeed, it makes this specific crash go away... however, we fail later on in codegen (in LLVM19) with |
In slice_vector(), only check for type equality after vectors have been normalized to fixed (i.e., it's ok for some original input to be vscale)
I think the remaining bug here is just an LLVM bug we need to report, I'll do that now: llvm/llvm-project#114900 |
Still debugging this, but here is a simple repro case that fails at Halide compilation time:
Failure is in
The text was updated successfully, but these errors were encountered: