1 # RUN: llc --verify-machineinstrs -mtriple=aarch64 -o - %s -run-pass pipeliner -aarch64-enable-pipeliner -debug-only=pipeliner 2>&1 | FileCheck %s
4 # unacceptable loops by pipeliner
9 tracksRegLiveness: true
11 ; multiple counter increment instructions
12 ; CHECK: Unable to analyzeLoop, can NOT pipeline Loop
19 %12:gpr64 = PHI %11, %bb.0, %13, %bb.1
20 %13:gpr64 = ADDXrr %12, %11
21 %14:gpr64 = ADDXrr %13, %11
22 dead $xzr = SUBSXrr %10, %14, implicit-def $nzcv
23 Bcc 1, %bb.1, implicit $nzcv
30 tracksRegLiveness: true
32 ; neither operand of the increment instruction is a loop invariant value
33 ; CHECK: Unable to analyzeLoop, can NOT pipeline Loop
40 %12:gpr64 = PHI %11, %bb.0, %13, %bb.1
41 %13:gpr64 = ADDXrr %12, %12
42 dead $xzr = SUBSXrr %10, %13, implicit-def $nzcv
43 Bcc 1, %bb.1, implicit $nzcv
50 tracksRegLiveness: true
52 ; neither operand of the compare instruction is a loop invariant value
53 ; CHECK: Unable to analyzeLoop, can NOT pipeline Loop
60 %12:gpr64 = PHI %11, %bb.0, %13, %bb.1
61 %13:gpr64 = ADDXrr %12, %11
62 dead $xzr = SUBSXrr %13, %13, implicit-def $nzcv
63 Bcc 1, %bb.1, implicit $nzcv
70 tracksRegLiveness: true
72 ; multiple phi instructions
73 ; CHECK: Unable to analyzeLoop, can NOT pipeline Loop
80 %12:gpr64 = PHI %11, %bb.0, %13, %bb.1
81 %14:gpr64 = PHI %11, %bb.0, %15, %bb.1
82 dead $xzr = SUBSXrr %12, %10, implicit-def $nzcv
83 %13:gpr64 = ADDXrr %14, %11
84 %15:gpr64 = ADDXrr %12, %11
85 Bcc 1, %bb.1, implicit $nzcv
92 tracksRegLiveness: true
94 ; not an increment instruction
95 ; CHECK: Unable to analyzeLoop, can NOT pipeline Loop
102 %12:gpr64 = PHI %11, %bb.0, %13, %bb.1
103 %13:gpr64 = ORRXrr %12, %12
104 dead $xzr = SUBSXrr %12, %10, implicit-def $nzcv
105 Bcc 1, %bb.1, implicit $nzcv