blob: 6794d8a88f18e92b9c2cbe714d977ad430e8138c [file] [edit]
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --filter "S_ORN2|COPY" --version 6
# RUN: llc -mtriple=amdgpu10.10 -run-pass=si-optimize-exec-masking %s -o - | FileCheck %s
# Five debug instructions must not exhaust optimizeExecSequence's search budget.
--- |
define void @fold_orn2_exec_copy_after_debug() !dbg !5 {
entry:
#dbg_value(i32 0, !9, !DIExpression(), !11)
unreachable, !dbg !11
}
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!4}
!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug)
!1 = !DIFile(filename: "optimize-exec-masking-debug-search-limit.mir", directory: "/")
!4 = !{i32 2, !"Debug Info Version", i32 3}
!5 = distinct !DISubprogram(name: "fold_orn2_exec_copy_after_debug", linkageName: "fold_orn2_exec_copy_after_debug", scope: null, file: !1, line: 8, type: !6, scopeLine: 8, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !8)
!6 = !DISubroutineType(types: !7)
!7 = !{}
!8 = !{!9}
!9 = !DILocalVariable(name: "8", scope: !5, file: !1, line: 8, type: !10)
!10 = !DIBasicType(name: "ty32", size: 32, encoding: DW_ATE_unsigned)
!11 = !DILocation(line: 8, column: 1, scope: !5)
...
---
name: fold_orn2_exec_copy_after_debug
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: fold_orn2_exec_copy_after_debug
; CHECK: $exec_lo = S_ORN2_B32 $exec_lo, killed $vcc_lo, implicit-def $scc
$vcc_lo = IMPLICIT_DEF
$sgpr0 = S_ORN2_B32 $exec_lo, killed $vcc_lo, implicit-def $scc
$exec_lo = COPY killed $sgpr0
DBG_VALUE $exec_lo, $noreg, !9, !DIExpression(), debug-location !11
DBG_VALUE $noreg, $noreg, !9, !DIExpression(), debug-location !11
DBG_VALUE $noreg, $noreg, !9, !DIExpression(), debug-location !11
DBG_VALUE $noreg, $noreg, !9, !DIExpression(), debug-location !11
DBG_VALUE $noreg, $noreg, !9, !DIExpression(), debug-location !11
S_ENDPGM 0
...