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
80 lines
2.9 KiB
LLVM
80 lines
2.9 KiB
LLVM
; RUN: opt -mtriple=aarch64-unknown-linux-gnu -S %s -passes=sroa -o - | FileCheck %s
|
|
|
|
; In this test we want to ensure that the merged location of phi instruction
|
|
; belongs to the correct scope (DILexicalBlockFile), so that line number
|
|
; of that location belongs to the corresponding file.
|
|
|
|
; Generated with clang from
|
|
; # 1 "1.c" 1
|
|
; # 1 "1.c" 2
|
|
; int foo(int a) {
|
|
; int i = 0;
|
|
; if ((a & 1) == 1) {
|
|
; a -= 1;
|
|
; # 1 "m.c" 1
|
|
; # 40 "m.c"
|
|
; i += a;
|
|
; i -= 10*a;
|
|
; i *= a*a;
|
|
; # 6 "1.c" 2
|
|
; } else {
|
|
; a += 3;
|
|
; # 1 "m.c" 1
|
|
; # 40 "m.c"
|
|
; i += a;
|
|
; i -= 10*a;
|
|
; i *= a*a;
|
|
; # 9 "1.c" 2
|
|
; }
|
|
; return i;
|
|
; }
|
|
|
|
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
|
|
target triple = "aarch64-unknown-linux-gnu"
|
|
|
|
define i32 @foo() !dbg !3 {
|
|
; CHECK: phi i32 {{.*}}, !dbg [[PHILOC:![0-9]+]]
|
|
;
|
|
entry:
|
|
%i = alloca i32, align 4
|
|
br i1 false, label %if.then, label %if.else
|
|
|
|
if.then: ; preds = %entry
|
|
store i32 1, ptr %i, align 4, !dbg !7
|
|
br label %if.end
|
|
|
|
if.else: ; preds = %entry
|
|
store i32 0, ptr %i, align 4, !dbg !12
|
|
br label %if.end
|
|
|
|
if.end: ; preds = %if.else, %if.then
|
|
%0 = load i32, ptr %i, align 4
|
|
ret i32 0
|
|
}
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!2}
|
|
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang version 21.0.0git", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
|
|
!1 = !DIFile(filename: "repro.c", directory: "")
|
|
!2 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!3 = distinct !DISubprogram(name: "foo", scope: !4, file: !4, line: 1, type: !5, scopeLine: 1, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !6)
|
|
!4 = !DIFile(filename: "1.c", directory: "")
|
|
!5 = !DISubroutineType(types: !6)
|
|
!6 = !{}
|
|
!7 = !DILocation(line: 42, column: 3, scope: !8)
|
|
!8 = !DILexicalBlockFile(scope: !10, file: !9, discriminator: 0)
|
|
!9 = !DIFile(filename: "m.c", directory: "")
|
|
!10 = distinct !DILexicalBlock(scope: !11, file: !4, line: 3, column: 21)
|
|
!11 = distinct !DILexicalBlock(scope: !3, file: !4, line: 3, column: 7)
|
|
!12 = !DILocation(line: 42, column: 3, scope: !13)
|
|
!13 = !DILexicalBlockFile(scope: !14, file: !9, discriminator: 0)
|
|
!14 = distinct !DILexicalBlock(scope: !11, file: !4, line: 6, column: 9)
|
|
|
|
; CHECK: [[SP:![0-9]+]] = distinct !DISubprogram(name: "foo", scope: [[FILE1:![0-9]+]], file: [[FILE1]], line: 1
|
|
; CHECK: [[FILE1]] = !DIFile(filename: "1.c", directory: "")
|
|
; CHECK: [[PHILOC]] = !DILocation(line: 42, column: 3, scope: [[LBF:![0-9]+]])
|
|
; CHECK: [[LBF]] = !DILexicalBlockFile(scope: [[LB:![0-9]+]], file: [[FILE2:![0-9]+]], discriminator: 0)
|
|
; CHECK: [[FILE2]] = !DIFile(filename: "m.c", directory: "")
|
|
; CHECK: [[LB]] = distinct !DILexicalBlock(scope: [[SP]], file: [[FILE1]], line: 3, column: 7)
|