forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286526 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
4 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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 | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters