Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-reduce / mir / preserve-func-info.mir
blob5f11cea89d7e7b48dbf5c0639d3985be00094472
1 # REQUIRES: amdgpu-registered-target
2 # RUN: llvm-reduce -abort-on-invalid-reduction -simplify-mir -mtriple=amdgcn-amd-amdhsa --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
3 # RUN: FileCheck --check-prefix=RESULT %s < %t
5 # CHECK-INTERESTINGNESS: V_MOV_B32
8 # RESULT: name: func
9 # RESULT-NEXT: alignment:       32
10 # RESULT-NEXT: exposesReturnsTwice: true
11 # RESULT-NEXT: legalized:       true
12 # RESULT-NEXT: regBankSelected: true
13 # RESULT-NEXT: selected:        true
14 # RESULT-NEXT: failedISel:      true
15 # RESULT-NEXT: tracksRegLiveness: true
16 # RESULT-NEXT: hasWinCFI:       true
17 # RESULT-NEXT: callsEHReturn: true
18 # RESULT-NEXT: callsUnwindInit: true
19 # RESULT-NEXT: hasEHCatchret: true
20 # RESULT-NEXT: hasEHScopes: true
21 # RESULT-NEXT: hasEHFunclets: true
22 # RESULT-NEXT: failsVerification: true
23 # RESULT-NEXT: tracksDebugUserValues: true
25 # RESULT: %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
26 # RESULT-NEXT: S_ENDPGM
28 --- |
29   define void @func(i32 %size)  {
30     ret void
31   }
33 ...
34 ---
35 name: func
36 alignment:       32
37 exposesReturnsTwice: true
38 legalized:       true
39 regBankSelected: true
40 selected:        true
41 failedISel:      true
42 tracksRegLiveness: true
43 hasWinCFI:       true
44 failsVerification: true
45 tracksDebugUserValues: true
46 callsEHReturn: true
47 callsUnwindInit: true
48 hasEHCatchret: true
49 hasEHScopes: true
50 hasEHFunclets: true
52 body:             |
53   bb.0:
54     S_NOP 0
55     %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
56     INLINEASM &"", 1 /* sideeffect attdialect */
57     S_ENDPGM 0, implicit %0
58 ...