1 # RUN: llc -run-pass opt-phis -mtriple=x86_64-- -o - %s | FileCheck %s
2 # RUN: llc -passes opt-phis -mtriple=x86_64-- -o - %s | FileCheck %s
9 !llvm.module.flags = !{!2, !3}
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)
24 tracksRegLiveness: true
27 %0:gr32 = IMPLICIT_DEF
30 %1:gr32 = PHI %0, %bb.0, %2, %bb.1
31 DBG_VALUE %1, _, !7, !DIExpression(), debug-location !6
32 %2:gr32 = IMPLICIT_DEF
36 # The PHI should be removed since it's only used in a DBG_VALUE