Files
TheRock/compiler/amd-llvm/llvm/test/Transforms/GlobalOpt/crash.ll
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

79 lines
2.3 KiB
LLVM

; RUN: opt -passes=globalopt -disable-output < %s
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32"
target triple = "i386-apple-darwin9.8"
%0 = type { i32, ptr, ptr }
%struct.btSimdScalar = type { %"union.btSimdScalar::$_14" }
%"union.btSimdScalar::$_14" = type { <4 x float> }
@_ZL6vTwist = global %struct.btSimdScalar zeroinitializer ; <ptr> [#uses=1]
@llvm.global_ctors = appending global [1 x %0] [%0 { i32 65535, ptr @_GLOBAL__I__ZN21btConeTwistConstraintC2Ev, ptr null }] ; <ptr> [#uses=0]
define internal void @_GLOBAL__I__ZN21btConeTwistConstraintC2Ev() nounwind section "__TEXT,__StaticInit,regular,pure_instructions" {
entry:
store float 1.0, ptr getelementptr inbounds (%struct.btSimdScalar, ptr @_ZL6vTwist, i32 0, i32 0, i32 0, i32 3), align 4
ret void
}
; PR6760
%T = type { [5 x i32] }
@switch_inf = internal global ptr null
define void @test(ptr %arch_file, i32 %route_type) {
entry:
%A = sext i32 1 to i64
%B = mul i64 %A, 20
%C = call noalias ptr @malloc(i64 %B) nounwind
store ptr %C, ptr @switch_inf, align 8
unreachable
bb.nph.i:
%scevgep.i539 = getelementptr i8, ptr %C, i64 4
unreachable
xx:
%E = load ptr, ptr @switch_inf, align 8
unreachable
}
declare noalias ptr @malloc(i64) nounwind
; PR8063
@permute_bitrev.bitrev = internal global ptr null, align 8
define void @permute_bitrev() nounwind {
entry:
%tmp = load ptr, ptr @permute_bitrev.bitrev, align 8
%conv = sext i32 0 to i64
%mul = mul i64 %conv, 4
%call = call ptr @malloc(i64 %mul)
store ptr %call, ptr @permute_bitrev.bitrev, align 8
ret void
}
@data8 = internal global [8000 x i8] zeroinitializer, align 16
define void @memset_with_strange_user() ssp {
call void @llvm.memset.p0.i64(ptr align 16 @data8, i8 undef, i64 ptrtoint (ptr getelementptr ([8000 x i8], ptr @data8, i64 1, i64 sub (i64 0, i64 ptrtoint (ptr @data8 to i64))) to i64), i1 false)
ret void
}
declare void @llvm.memset.p0.i64(ptr nocapture, i8, i64, i1) nounwind
; PR9856
@g_52 = internal global ptr null, align 8
@g_90 = external global ptr, align 8
define void @icmp_user_of_stored_once() nounwind ssp {
entry:
%tmp4 = load ptr, ptr @g_52, align 8
store ptr @g_90, ptr @g_52
%cmp17 = icmp ne ptr undef, @g_52
ret void
}