1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/CodeGen/AArch64/scheduledag-constreg.mir
Matthias Braun 2a033e8287 ScheduleDAGInstrs: Ignore dependencies of constant physregs
There is no need to track dependencies for constant physregs, as they
don't change their value no matter in what order you read/write to them.

Differential Revision: https://reviews.llvm.org/D26221

llvm-svn: 286526
2016-11-10 23:46:44 +00:00

30 lines
958 B
YAML

# RUN: llc -o /dev/null %s -mtriple=aarch64-- -run-pass=machine-scheduler -enable-misched -debug-only=misched 2>&1 | FileCheck %s
# REQUIRES: asserts
--- |
define void @func() { ret void }
...
---
# Check that the instructions are not dependent on each other, even though
# they all read/write to the zero register.
# CHECK-LABEL: MI Scheduling
# CHECK: SU(0): %WZR<def,dead> = SUBSWri %W1, 0, 0, %NZCV<imp-def,dead>
# CHECK: # succs left : 0
# CHECK-NOT: Successors:
# CHECK: SU(1): %W2<def> = COPY %WZR
# CHECK: # succs left : 0
# CHECK-NOT: Successors:
# CHECK: SU(2): %WZR<def,dead> = SUBSWri %W3, 0, 0, %NZCV<imp-def,dead>
# CHECK: # succs left : 0
# CHECK-NOT: Successors:
# CHECK: SU(3): %W4<def> = COPY %WZR
# CHECK: # succs left : 0
# CHECK-NOT: Successors:
name: func
body: |
bb.0:
dead %wzr = SUBSWri %w1, 0, 0, implicit-def dead %nzcv
%w2 = COPY %wzr
dead %wzr = SUBSWri %w3, 0, 0, implicit-def dead %nzcv
%w4 = COPY %wzr
...