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
65 lines
2.5 KiB
LLVM
65 lines
2.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -mtriple aarch64-- -passes=consthoist -S | FileCheck %s
|
|
|
|
; This used to trigger an assertion failure:
|
|
;
|
|
; ../lib/Transforms/Scalar/ConstantHoisting.cpp:779: void llvm::ConstantHoistingPass::emitBaseConstants(llvm::Instruction *, llvm::Constant *, llvm::Type *, const llvm::consthoist::ConstantUser &): Assertion `CastInst->isCast() && "Expected an cast instruction!"' failed.
|
|
|
|
@c.a = external global i32, align 1
|
|
|
|
define void @c(i1 %arg) {
|
|
; CHECK-LABEL: @c(
|
|
; CHECK-NEXT: entry:
|
|
; CHECK-NEXT: [[TOBOOL:%.*]] = icmp ne i16 0, 0
|
|
; CHECK-NEXT: br i1 %arg, label [[LBL1_US:%.*]], label [[ENTRY_ENTRY_SPLIT_CRIT_EDGE:%.*]]
|
|
; CHECK: entry.entry.split_crit_edge:
|
|
; CHECK-NEXT: [[CONST:%.*]] = bitcast i32 1232131 to i32
|
|
; CHECK-NEXT: br label [[LBL1:%.*]]
|
|
; CHECK: lbl1.us:
|
|
; CHECK-NEXT: [[CONST1:%.*]] = bitcast i32 1232131 to i32
|
|
; CHECK-NEXT: store i32 [[CONST1]], ptr @c.a, align 1
|
|
; CHECK-NEXT: br label [[FOR_COND4:%.*]]
|
|
; CHECK: lbl1:
|
|
; CHECK-NEXT: store i32 [[CONST]], ptr @c.a, align 1
|
|
; CHECK-NEXT: br i1 %arg, label [[IF_THEN:%.*]], label [[FOR_END12:%.*]]
|
|
; CHECK: if.then:
|
|
; CHECK-NEXT: br i1 %arg, label [[LBL1]], label [[FOR_COND4]]
|
|
; CHECK: for.cond4:
|
|
; CHECK-NEXT: br label [[FOR_COND4]]
|
|
; CHECK: for.body9:
|
|
; CHECK-NEXT: store i32 1232131, ptr undef, align 1
|
|
; CHECK-NEXT: store i32 1232132, ptr undef, align 1
|
|
; CHECK-NEXT: br label [[FOR_BODY9:%.*]]
|
|
; CHECK: for.end12:
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
%tobool = icmp ne i16 0, 0
|
|
br i1 %arg, label %lbl1.us, label %entry.entry.split_crit_edge
|
|
|
|
entry.entry.split_crit_edge: ; preds = %entry
|
|
br label %lbl1
|
|
|
|
lbl1.us: ; preds = %entry
|
|
store i32 1232131, ptr @c.a, align 1
|
|
br label %for.cond4
|
|
|
|
lbl1: ; preds = %if.then, %entry.entry.split_crit_edge
|
|
store i32 1232131, ptr @c.a, align 1
|
|
br i1 %arg, label %if.then, label %for.end12
|
|
|
|
if.then: ; preds = %lbl1
|
|
br i1 %arg, label %lbl1, label %for.cond4
|
|
|
|
for.cond4: ; preds = %for.cond4, %if.then, %lbl1.us
|
|
br label %for.cond4
|
|
|
|
for.body9: ; preds = %for.body9
|
|
store i32 1232131, ptr undef, align 1
|
|
store i32 1232132, ptr undef, align 1
|
|
br label %for.body9
|
|
|
|
for.end12: ; preds = %lbl1
|
|
ret void
|
|
}
|