[TTI] getTypeBasedIntrinsicInstrCost - add basic handling for strided load/store...
[llvm-project.git] / llvm / test / CodeGen / X86 / opt_phis.mir
blobdb4fa9efeb2d80a8c3a3c7d66a6892cdc5fc25ef
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
3 --- |
4   define void @test() {
5     ret void
6   }
8   !llvm.dbg.cu = !{!1}
9   !llvm.module.flags = !{!2, !3}
10   !llvm.ident = !{!4}
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)
21 ...
22 ---
23 name:            test
24 tracksRegLiveness: true
25 body:             |
26   bb.0:
27     %0:gr32 = IMPLICIT_DEF
29   bb.1:
30     %1:gr32 = PHI %0, %bb.0, %2, %bb.1
31     DBG_VALUE %1, _, !7, !DIExpression(), debug-location !6
32     %2:gr32 = IMPLICIT_DEF
33     JMP_1 %bb.1
34 ...
36 # The PHI should be removed since it's only used in a DBG_VALUE
37 # CHECK-LABEL: bb.1:
38 # CHECK-NOT: PHI