[X86][Haswell][SchedModel] Fix WriteMULm latency.
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 26 Feb 2015 14:30:09 +0000 (14:30 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 26 Feb 2015 14:30:09 +0000 (14:30 +0000)
The latency for the WriteMULm class was set to 4, which is actually lower than the latency for WriteMULr (5).
A better estimate would be 4 added to WriteMULr, that is, 9.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230634 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86SchedHaswell.td

index 73a32304302aaa405e6f2c8d886cbef6ca4cd445..61c06000fc7d008126cd8d2ac1bbb10005809057 100644 (file)
@@ -1895,7 +1895,7 @@ def : InstRW<[WriteMULr], (instregex "(V?)MUL(P|S)(S|D)rr")>;
 
 // x,m / v,v,m.
 def WriteMULm : SchedWriteRes<[HWPort01, HWPort23]> {
-  let Latency = 4;
+  let Latency = 9;
   let NumMicroOps = 2;
   let ResourceCycles = [1, 1];
 }