From 0f1da8f3657af45228ccd7461005f393b7ca9fe0 Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Wed, 2 May 2018 13:54:38 +0000 Subject: [PATCH] Revert rL331355 "[X86] Fix scheduling info for VMPSADBWYrmi." It contains unrelated changes. llvm-svn: 331357 --- llvm/lib/Target/X86/X86SchedBroadwell.td | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/llvm/lib/Target/X86/X86SchedBroadwell.td b/llvm/lib/Target/X86/X86SchedBroadwell.td index 199462597154..0531ef5700b0 100755 --- a/llvm/lib/Target/X86/X86SchedBroadwell.td +++ b/llvm/lib/Target/X86/X86SchedBroadwell.td @@ -11,6 +11,7 @@ // scheduling and other instruction cost heuristics. // //===----------------------------------------------------------------------===// + def BroadwellModel : SchedMachineModel { // All x86 instructions are modeled as a single micro-op, and BW can decode 4 // instructions per cycle. @@ -155,9 +156,9 @@ def : WriteRes; def : WriteRes; defm : BWWriteResPair; // Floating point add/sub. -defm : BWWriteResPair; // Floating point add/sub (YMM/ZMM). +defm : BWWriteResPair; // Floating point add/sub (YMM/ZMM). defm : BWWriteResPair; // Floating point compare. -defm : BWWriteResPair; // Floating point compare (YMM/ZMM). +defm : BWWriteResPair; // Floating point compare (YMM/ZMM). defm : BWWriteResPair; // Floating point compare to flags. defm : BWWriteResPair; // Floating point multiplication. defm : BWWriteResPair; // Floating point multiplication (YMM/ZMM). @@ -1368,20 +1369,8 @@ def BWWriteResGroup101 : SchedWriteRes<[BWPort1,BWPort23]> { } def: InstRW<[BWWriteResGroup101], (instregex "(ADD|SUB|SUBR)_F(32|64)m", "ILD_F(16|32|64)m", - "VADDPDYrm", - "VADDPSYrm", - "VADDSUBPDYrm", - "VADDSUBPSYrm", - "VCMPPDYrmi", - "VCMPPSYrmi", "VCVTPS2DQYrm", - "VCVTTPS2DQYrm", - "VMAX(C?)PDYrm", - "VMAX(C?)PSYrm", - "VMIN(C?)PDYrm", - "VMIN(C?)PSYrm", - "VSUBPDYrm", - "VSUBPSYrm")>; + "VCVTTPS2DQYrm")>; def BWWriteResGroup102 : SchedWriteRes<[BWPort5,BWPort23]> { let Latency = 9; @@ -1654,7 +1643,7 @@ def: InstRW<[BWWriteResGroup137_1], (instregex "(V?)SQRTSSr")>; def BWWriteResGroup138 : SchedWriteRes<[BWPort0,BWPort5,BWPort23]> { let Latency = 13; let NumMicroOps = 4; - let ResourceCycles = [1,2,1]; + let ResourceCycles = [1,2,1,7]; } def: InstRW<[BWWriteResGroup138], (instregex "VMPSADBWYrmi")>;