From 319ce96fe474a2b2a6f1747cb8f474b79471ca65 Mon Sep 17 00:00:00 2001 From: Jonas Paulsson Date: Thu, 12 Apr 2018 08:08:42 +0000 Subject: [PATCH] [SystemZ] Use ResourceCycles=30 for FPd unit (NFC). This is better than listing FPd 30 times :-) Review: Ulrich Weigand llvm-svn: 329887 --- llvm/lib/Target/SystemZ/SystemZScheduleZ13.td | 13 ++----------- llvm/lib/Target/SystemZ/SystemZScheduleZ14.td | 13 ++----------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/llvm/lib/Target/SystemZ/SystemZScheduleZ13.td b/llvm/lib/Target/SystemZ/SystemZScheduleZ13.td index efe8c939d6e5..0e42fd944a81 100644 --- a/llvm/lib/Target/SystemZ/SystemZScheduleZ13.td +++ b/llvm/lib/Target/SystemZ/SystemZScheduleZ13.td @@ -78,17 +78,8 @@ def : WriteRes { let Latency = 8; } def : WriteRes { let Latency = 9; } def : WriteRes { let Latency = 1; } def : WriteRes { let Latency = 2; } -def : WriteRes - { let Latency = 30; } +def : WriteRes { let Latency = 30; + let ResourceCycles = [30]; } def : WriteRes { let Latency = 5; } def : WriteRes { let Latency = 4; } def : WriteRes { let Latency = 3; } diff --git a/llvm/lib/Target/SystemZ/SystemZScheduleZ14.td b/llvm/lib/Target/SystemZ/SystemZScheduleZ14.td index 4113e868cd04..8921d2b5400d 100644 --- a/llvm/lib/Target/SystemZ/SystemZScheduleZ14.td +++ b/llvm/lib/Target/SystemZ/SystemZScheduleZ14.td @@ -78,17 +78,8 @@ def : WriteRes { let Latency = 8; } def : WriteRes { let Latency = 9; } def : WriteRes { let Latency = 1; } def : WriteRes { let Latency = 2; } -def : WriteRes - { let Latency = 30; } +def : WriteRes { let Latency = 30; + let ResourceCycles = [30]; } def : WriteRes { let Latency = 5; } def : WriteRes { let Latency = 4; } def : WriteRes { let Latency = 3; }