Files
TheRock/compiler/amd-llvm/llvm/test/Transforms/EarlyCSE/nofpclass-phi-regression.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

48 lines
2.0 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
; RUN: opt -S -passes=early-cse %s | FileCheck %s
; Check for regression when phi support for computeKnownFPClass was
; first committed.
define void @compute_known_fpclass_phi_assert(i1 %cmp46, i1 %tobool51, ptr %a01) {
; CHECK-LABEL: define void @compute_known_fpclass_phi_assert
; CHECK-SAME: (i1 [[CMP46:%.*]], i1 [[TOBOOL51:%.*]], ptr [[A01:%.*]]) {
; CHECK-NEXT: entry:
; CHECK-NEXT: br label [[FOR_COND45:%.*]]
; CHECK: for.cond45:
; CHECK-NEXT: [[TMP0:%.*]] = phi double [ [[TMP1:%.*]], [[FOR_INC80:%.*]] ], [ 0.000000e+00, [[ENTRY:%.*]] ]
; CHECK-NEXT: br i1 [[CMP46]], label [[FOR_BODY48:%.*]], label [[FOR_END82:%.*]]
; CHECK: for.body48:
; CHECK-NEXT: br i1 [[TOBOOL51]], label [[FOR_INC80]], label [[IF_THEN52:%.*]]
; CHECK: if.then52:
; CHECK-NEXT: store double 0.000000e+00, ptr [[A01]], align 8
; CHECK-NEXT: br label [[FOR_INC80]]
; CHECK: for.inc80:
; CHECK-NEXT: [[TMP1]] = phi double [ 0.000000e+00, [[IF_THEN52]] ], [ [[TMP0]], [[FOR_BODY48]] ]
; CHECK-NEXT: br label [[FOR_COND45]]
; CHECK: for.end82:
; CHECK-NEXT: ret void
;
entry:
br label %for.cond45
for.cond45: ; preds = %for.inc80, %entry
%0 = phi double [ %1, %for.inc80 ], [ 0.000000e+00, %entry ]
br i1 %cmp46, label %for.body48, label %for.end82
for.body48: ; preds = %for.cond45
br i1 %tobool51, label %for.inc80, label %if.then52
if.then52: ; preds = %for.body48
store double 0.000000e+00, ptr %a01, align 8
br label %for.inc80
for.inc80: ; preds = %if.then52, %for.body48
%1 = phi double [ 0.000000e+00, %if.then52 ], [ %0, %for.body48 ]
br label %for.cond45
for.end82: ; preds = %for.cond45
%mul84 = fmul double %0, 0.000000e+00
%neg = fneg double %mul84
ret void
}