comparison llvm/test/CodeGen/AMDGPU/early-tailduplicator-nophis.mir @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=early-tailduplication -verify-machineinstrs -o - %s | FileCheck %s
3
4 # There are no phis in this testcase. Early tail duplication introduces them,
5 # so the NoPHIs property needs to be cleared to avoid verifier errors
6
7 ---
8 name: tail_duplicate_nophis
9 tracksRegLiveness: true
10 body: |
11 ; CHECK-LABEL: name: tail_duplicate_nophis
12 ; CHECK: bb.0:
13 ; CHECK: successors: %bb.3(0x80000000)
14 ; CHECK: [[S_MOV_B32_:%[0-9]+]]:sreg_32 = S_MOV_B32 0
15 ; CHECK: S_BRANCH %bb.3
16 ; CHECK: bb.2:
17 ; CHECK: successors: %bb.3(0x80000000)
18 ; CHECK: [[DEF:%[0-9]+]]:sreg_32 = IMPLICIT_DEF
19 ; CHECK: S_SLEEP 9
20 ; CHECK: bb.3:
21 ; CHECK: successors: %bb.3(0x80000000)
22 ; CHECK: [[PHI:%[0-9]+]]:sreg_32 = PHI [[DEF]], %bb.2, %1, %bb.3, [[S_MOV_B32_]], %bb.0
23 ; CHECK: S_NOP 0, implicit [[PHI]]
24 ; CHECK: S_SLEEP 1
25 ; CHECK: [[S_MOV_B32_1:%[0-9]+]]:sreg_32 = S_MOV_B32 0
26 ; CHECK: S_BRANCH %bb.3
27 bb.1:
28
29 bb.2:
30 %5:sreg_32 = S_MOV_B32 0
31 S_BRANCH %bb.4
32
33 bb.3:
34 S_SLEEP 9
35
36 bb.4:
37 S_NOP 0, implicit %5
38 S_SLEEP 1
39 S_BRANCH %bb.2
40
41 ...