1 # RUN: llc -mtriple=aarch64-unknown-unknown -run-pass=machine-outliner \
2 # RUN: -verify-machineinstrs %s -o - | FileCheck %s
4 # Ensure that outlined function names appear as expected. Currently, they are
5 # output in order of benefit.
8 define void @should_have_fn2() #0 { ret void }
9 define void @should_have_fn0() #0 { ret void }
10 define void @should_have_fn1() #0 { ret void }
11 attributes #0 = { noredzone optsize minsize }
16 tracksRegLiveness: true
19 ; CHECK-LABEL: name: should_have_fn2
20 ; CHECK-NOT: OUTLINED_FUNCTION_1
21 ; CHECK-NOT: OUTLINED_FUNCTION_0
22 ; CHECK: OUTLINED_FUNCTION_2
27 ; CHECK-DAG: OUTLINED_FUNCTION_2
32 ; CHECK-DAG: OUTLINED_FUNCTION_2
37 ; CHECK-DAG: OUTLINED_FUNCTION_2
49 tracksRegLiveness: true
52 ; CHECK-LABEL: name: should_have_fn0
53 ; CHECK-NOT: OUTLINED_FUNCTION_1
54 ; CHECK-NOT: OUTLINED_FUNCTION_2
55 ; CHECK: OUTLINED_FUNCTION_0
62 ; CHECK-DAG: OUTLINED_FUNCTION_0
69 ; CHECK-DAG: OUTLINED_FUNCTION_0
82 tracksRegLiveness: true
85 ; CHECK-LABEL: name: should_have_fn1
86 ; CHECK-NOT: OUTLINED_FUNCTION_0
87 ; CHECK-NOT: OUTLINED_FUNCTION_2
88 ; CHECK: OUTLINED_FUNCTION_1
94 ; CHECK-DAG: OUTLINED_FUNCTION_1
100 ; CHECK-DAG: OUTLINED_FUNCTION_1