[llvm] r329887 - [SystemZ] Use ResourceCycles=30 for FPd unit (NFC).
Jonas Paulsson via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 12 01:08:42 PDT 2018
Author: jonpa
Date: Thu Apr 12 01:08:42 2018
New Revision: 329887
URL: http://llvm.org/viewvc/llvm-project?rev=329887&view=rev
Log:
[SystemZ] Use ResourceCycles=30 for FPd unit (NFC).
This is better than listing FPd 30 times :-)
Review: Ulrich Weigand
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ13.td
llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ14.td
Modified: llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ13.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ13.td?rev=329887&r1=329886&r2=329887&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ13.td (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ13.td Thu Apr 12 01:08:42 2018
@@ -78,17 +78,8 @@ def : WriteRes<VecDF, [Z13_VecUnit]> {
def : WriteRes<VecDF2, [Z13_VecUnit, Z13_VecUnit]> { let Latency = 9; }
def : WriteRes<VecDFX, [Z13_VecUnit]> { let Latency = 1; }
def : WriteRes<VecDFX2, [Z13_VecUnit, Z13_VecUnit]> { let Latency = 2; }
-def : WriteRes<VecFPd, [Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit,
- Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit,
- Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit,
- Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit,
- Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit,
- Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit,
- Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit,
- Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit,
- Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit,
- Z13_VecFPdUnit, Z13_VecFPdUnit, Z13_VecFPdUnit]>
- { let Latency = 30; }
+def : WriteRes<VecFPd, [Z13_VecFPdUnit]> { let Latency = 30;
+ let ResourceCycles = [30]; }
def : WriteRes<VecMul, [Z13_VecUnit]> { let Latency = 5; }
def : WriteRes<VecStr, [Z13_VecUnit]> { let Latency = 4; }
def : WriteRes<VecXsPm, [Z13_VecUnit]> { let Latency = 3; }
Modified: llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ14.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ14.td?rev=329887&r1=329886&r2=329887&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ14.td (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZScheduleZ14.td Thu Apr 12 01:08:42 2018
@@ -78,17 +78,8 @@ def : WriteRes<VecDF, [Z14_VecUnit]> {
def : WriteRes<VecDF2, [Z14_VecUnit, Z14_VecUnit]> { let Latency = 9; }
def : WriteRes<VecDFX, [Z14_VecUnit]> { let Latency = 1; }
def : WriteRes<VecDFX2, [Z14_VecUnit, Z14_VecUnit]> { let Latency = 2; }
-def : WriteRes<VecFPd, [Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit,
- Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit,
- Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit,
- Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit,
- Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit,
- Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit,
- Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit,
- Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit,
- Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit,
- Z14_VecFPdUnit, Z14_VecFPdUnit, Z14_VecFPdUnit]>
- { let Latency = 30; }
+def : WriteRes<VecFPd, [Z14_VecFPdUnit]> { let Latency = 30;
+ let ResourceCycles = [30]; }
def : WriteRes<VecMul, [Z14_VecUnit]> { let Latency = 5; }
def : WriteRes<VecStr, [Z14_VecUnit]> { let Latency = 4; }
def : WriteRes<VecXsPm, [Z14_VecUnit]> { let Latency = 3; }
More information about the llvm-commits
mailing list