[PATCH] D21540: AMDGPU: Define a schedule class for COPY.
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 20 16:47:29 PDT 2016
MatzeB created this revision.
MatzeB added reviewers: tstellarAMD, arsenm.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Herald added subscribers: kzhuravl, mcrosier, arsenm.
Proof of concept patch. I found this while analyzing some of the regressions in http://reviews.llvm.org/D19401 which are fixed by this, but the change should be good in general.
No testcase updates included here yet.
Repository:
rL LLVM
http://reviews.llvm.org/D21540
Files:
lib/Target/AMDGPU/SISchedule.td
Index: lib/Target/AMDGPU/SISchedule.td
===================================================================
--- lib/Target/AMDGPU/SISchedule.td
+++ lib/Target/AMDGPU/SISchedule.td
@@ -105,6 +105,8 @@
def : HWVALUWriteRes<WriteDouble, 4>;
def : HWVALUWriteRes<WriteDoubleAdd, 2>;
+def : InstRW<[WriteSALU], (instrs COPY)>;
+
} // End SchedModel = SIFullSpeedModel
let SchedModel = SIQuarterSpeedModel in {
@@ -115,4 +117,6 @@
def : HWVALUWriteRes<WriteDouble, 16>;
def : HWVALUWriteRes<WriteDoubleAdd, 8>;
+def : InstRW<[WriteSALU], (instrs COPY)>;
+
} // End SchedModel = SIQuarterSpeedModel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21540.61324.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160620/38474638/attachment.bin>
More information about the llvm-commits
mailing list