-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
LLVM Assertion in autovectorization when compiling with release + overflow-checks since 1.73 #120813
Comments
This is an LLVM assertion that can be hit by compiling for the The regression is in nightly-2023-08-09, which is when #114048, the LLVM 17 update landed.
|
A reduced case: target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"
define void @foo(ptr %0, <16 x i1> %1) {
bb1.i:
%.bc = bitcast <16 x i1> %1 to <2 x i8>
%.extract100 = extractelement <2 x i8> %.bc, i64 0
%_47 = icmp eq i8 %.extract100, 0
br i1 %_47, label %bb20, label %bb23
bb20: ; preds = %bb1.i
store <16 x i8> zeroinitializer, ptr %0, align 1
br label %bb23
bb23: ; preds = %bb20, %bb1.i
ret void
} https://llvm.godbolt.org/z/narrKadhK Upstream issue: llvm/llvm-project#81216 (I'm on vacation, and I'm not familiar with it. So I won't be assigning it to myself for a while. :) ) |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-high |
Should be fixed in beta & nightly. |
Using Rust
1.76.0
on anApple M1 Pro
withOSX 14.3
, usingcargo b
withopt-level = 3
:this happens
The error depends on the optimization level and overflow checking.
The text was updated successfully, but these errors were encountered: