mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
7b853c5906
We do not track liveness for reserved registers. It is unnecessary to add them to block livein lists. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304059 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
785 B
YAML
23 lines
785 B
YAML
# RUN: llc -o /dev/null %s -mtriple=aarch64-darwin-ios -run-pass=liveintervals -debug-only=regalloc -precompute-phys-liveness 2>&1 | FileCheck %s
|
|
# REQUIRES: asserts
|
|
--- |
|
|
define void @reserved_reg_liveness() { ret void }
|
|
...
|
|
---
|
|
# CHECK-LABEL: ********** INTERVALS **********
|
|
# W29 is reserved, so we should only see dead defs
|
|
# CHECK-DAG: W29 [32r,32d:{{[0-9]+}})[64r,64d:{{[0-9]+}})
|
|
# For normal registers like x28 we should see the full intervals
|
|
# CHECK-DAG: W28 [0B,16r:{{[0-9]+}})[32r,48r:{{[0-9]+}})[48r,48d:{{[0-9]+}})
|
|
# CHECK: # End machine code for function reserved_reg_liveness.
|
|
name: reserved_reg_liveness
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: %x28
|
|
%6 : xseqpairsclass = COPY %x28_fp
|
|
%x28_fp = COPY %6
|
|
%x28 = COPY %x28
|
|
%fp = COPY %fp
|
|
...
|