2016-05-21 07:14:56 +08:00
|
|
|
# RUN: llc -march=amdgcn -run-pass liveintervals -verify-machineinstrs -o /dev/null -debug-only=regalloc %s 2>&1 | FileCheck %s
|
|
|
|
# REQUIRES: asserts
|
|
|
|
# We currently maintain a main liveness range which operates like a superset of
|
|
|
|
# all subregister liveranges. We may need to create additional SSA values at
|
|
|
|
# merge point in this main liverange even though none of the subregister
|
|
|
|
# liveranges needed it.
|
|
|
|
#
|
|
|
|
# Should see three distinct value numbers:
|
2017-11-30 20:12:19 +08:00
|
|
|
# CHECK: %0 [{{.*}}:0)[{{.*}}:1)[{{.*}}:2) 0@{{[0-9]+[Berd]}} 1@{{[0-9]+[Berd]}} 2@{{[0-9]+B-phi}}
|
2016-05-21 07:14:56 +08:00
|
|
|
--- |
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @test0() { ret void }
|
2016-05-21 07:14:56 +08:00
|
|
|
...
|
|
|
|
---
|
|
|
|
name: test0
|
|
|
|
registers:
|
|
|
|
- { id: 0, class: sreg_64 }
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2016-07-27 05:49:34 +08:00
|
|
|
S_NOP 0, implicit-def undef %0.sub0
|
2018-02-01 06:04:26 +08:00
|
|
|
S_CBRANCH_VCCNZ %bb.1, implicit undef $vcc
|
2016-05-21 07:14:56 +08:00
|
|
|
S_BRANCH %bb.2
|
|
|
|
|
|
|
|
bb.1:
|
2016-07-27 05:49:34 +08:00
|
|
|
S_NOP 0, implicit-def %0.sub1
|
|
|
|
S_NOP 0, implicit %0.sub1
|
2016-05-21 07:14:56 +08:00
|
|
|
S_BRANCH %bb.2
|
|
|
|
|
|
|
|
bb.2:
|
2016-07-27 05:49:34 +08:00
|
|
|
S_NOP 0, implicit %0.sub0
|
2016-05-21 07:14:56 +08:00
|
|
|
...
|