-
Notifications
You must be signed in to change notification settings - Fork 12k
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
[AArch64] Assertion `VT.isVector() == N1.getValueType().isVector() && "TRUNCATE result type type should be vector iff the operand " "type is vector!"' failed. #81216
Comments
DianQK
added
backend:AArch64
llvm:crash
llvm:SelectionDAG
SelectionDAGISel as well
labels
Feb 9, 2024
@llvm/issue-subscribers-backend-aarch64 Author: Quentin Dian (DianQK)
I tried the following code that would trigger the assertion:
https://llvm.godbolt.org/z/narrKadhK From: rust-lang/rust#120813 <details><summary>Details</summary>
</p> |
Reduced: define <2 x i8> @test(<16 x i1> %arg) {
%bc = bitcast <16 x i1> %arg to <2 x i8>
ret <2 x i8> %bc
} |
nikic
added a commit
to nikic/llvm-project
that referenced
this issue
Feb 9, 2024
This optimization tries to optimize bitcasts from <N x i1> to iN, but currently also triggers for <N x i1> to <M x iK> bitcasts, if custom lowering has been requested for these for an unrelated reason. Fix this by explicitly checking that the result type is scalar. Fixes llvm#81216.
nikic
added a commit
that referenced
this issue
Feb 12, 2024
) This optimization tries to optimize bitcasts from `<N x i1>` to iN, but currently also triggers for `<N x i1>` to `<M x iK>` bitcasts, if custom lowering has been requested for these for an unrelated reason. Fix this by explicitly checking that the result type is scalar. Fixes #81216.
/cherry-pick 92d7992 |
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Feb 12, 2024
…m#81256) This optimization tries to optimize bitcasts from `<N x i1>` to iN, but currently also triggers for `<N x i1>` to `<M x iK>` bitcasts, if custom lowering has been requested for these for an unrelated reason. Fix this by explicitly checking that the result type is scalar. Fixes llvm#81216. (cherry picked from commit 92d7992)
/pull-request #81454 |
EugeneZelenko
added
release:backport
and removed
llvm:SelectionDAG
SelectionDAGISel as well
labels
Feb 12, 2024
nikic
added a commit
to rust-lang/llvm-project
that referenced
this issue
Feb 13, 2024
…m#81256) This optimization tries to optimize bitcasts from `<N x i1>` to iN, but currently also triggers for `<N x i1>` to `<M x iK>` bitcasts, if custom lowering has been requested for these for an unrelated reason. Fix this by explicitly checking that the result type is scalar. Fixes llvm#81216. (cherry picked from commit 92d7992)
nikic
added a commit
to nikic/llvm-project
that referenced
this issue
Feb 14, 2024
…m#81256) This optimization tries to optimize bitcasts from `<N x i1>` to iN, but currently also triggers for `<N x i1>` to `<M x iK>` bitcasts, if custom lowering has been requested for these for an unrelated reason. Fix this by explicitly checking that the result type is scalar. Fixes llvm#81216. (cherry picked from commit 92d7992)
cuviper
pushed a commit
to rust-lang/llvm-project
that referenced
this issue
Feb 14, 2024
…m#81256) This optimization tries to optimize bitcasts from `<N x i1>` to iN, but currently also triggers for `<N x i1>` to `<M x iK>` bitcasts, if custom lowering has been requested for these for an unrelated reason. Fix this by explicitly checking that the result type is scalar. Fixes llvm#81216. (cherry picked from commit 92d7992)
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Feb 16, 2024
…m#81256) This optimization tries to optimize bitcasts from `<N x i1>` to iN, but currently also triggers for `<N x i1>` to `<M x iK>` bitcasts, if custom lowering has been requested for these for an unrelated reason. Fix this by explicitly checking that the result type is scalar. Fixes llvm#81216. (cherry picked from commit 92d7992)
MingcongBai
pushed a commit
to AOSC-Tracking/llvm-project
that referenced
this issue
Mar 26, 2024
…m#81256) This optimization tries to optimize bitcasts from `<N x i1>` to iN, but currently also triggers for `<N x i1>` to `<M x iK>` bitcasts, if custom lowering has been requested for these for an unrelated reason. Fix this by explicitly checking that the result type is scalar. Fixes llvm#81216. (cherry picked from commit 92d7992)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried the following code that would trigger the assertion:
https://llvm.godbolt.org/z/narrKadhK
From: rust-lang/rust#120813
Details
The text was updated successfully, but these errors were encountered: