39 lines · plain
1# RUN: llc -run-pass opt-phis -mtriple=x86_64-- -o - %s | FileCheck %s2# RUN: llc -passes opt-phis -mtriple=x86_64-- -o - %s | FileCheck %s3--- |4 define void @test() {5 ret void6 }7 8 !llvm.dbg.cu = !{!1}9 !llvm.module.flags = !{!2, !3}10 !llvm.ident = !{!4}11 12 !0 = !DIFile(filename: "foo.c", directory: "/bar")13 !1 = distinct !DICompileUnit(language: DW_LANG_C, file: !0, producer: "My Compiler")14 !2 = !{i32 2, !"Dwarf Version", i32 4}15 !3 = !{i32 2, !"Debug Info Version", i32 3}16 !4 = !{!"My Compiler"}17 !5 = distinct !DISubprogram(name: "test")18 !6 = !DILocation(line: 7, column: 11, scope: !5)19 !7 = !DILocalVariable(name: "l", scope: !5)20 21...22---23name: test24tracksRegLiveness: true25body: |26 bb.0:27 %0:gr32 = IMPLICIT_DEF28 29 bb.1:30 %1:gr32 = PHI %0, %bb.0, %2, %bb.131 DBG_VALUE %1, _, !7, !DIExpression(), debug-location !632 %2:gr32 = IMPLICIT_DEF33 JMP_1 %bb.134...35 36# The PHI should be removed since it's only used in a DBG_VALUE37# CHECK-LABEL: bb.1:38# CHECK-NOT: PHI39