-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Crash with TLS+PIC+EXPENSIVE_CHECKS: "Bad machine code: FrameSetup is after another FrameSetup" #58947
Labels
Comments
@llvm/issue-subscribers-backend-x86
The following IR crashes when run through `llc -relocation-model=pic` (originally reported in https://github.com/rust-lang/rust/issues/104173):
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "repro.dba56e2e-cgu.0"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@<!-- -->_ZN5repro3FOO7__getit5__KEY17h8a371060d0f5b551E = external thread_local global <{ [4 x i8], [4 x i8], [1 x i8], [3 x i8] }>, align 4
declare ptr @"_ZN3std6thread5local4fast12Key$LT$T$GT$3get17h336c607071ef2f69E"(ptr, ptr) unnamed_addr #<!-- -->0
define hidden ptr @<!-- -->_ZN5repro3FOO7__getit17hcc9532ca2598edd1E(ptr %init) unnamed_addr #<!-- -->0 {
start:
%0 = call align 4 ptr @"_ZN3std6thread5local4fast12Key$LT$T$GT$3get17h336c607071ef2f69E"(ptr align 4 @<!-- -->_ZN5repro3FOO7__getit5__KEY17h8a371060d0f5b551E, ptr align 4 undef)
unreachable
}
attributes #<!-- -->0 = { "target-cpu"="x86-64" }
!llvm.module.flags = !{!0}
!0 = !{i32 2, !"RtLibUseGOT", i32 1} LLVM compiled at deeaec7 with
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following IR crashes when run through
llc -relocation-model=pic
(originally reported in rust-lang/rust#104173):LLVM compiled at deeaec7 with
LLVM_ENABLE_EXPENSIVE_CHECKS
enabled. Crash:The text was updated successfully, but these errors were encountered: