<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [mca] Multiple reservation station handling"
   href="https://bugs.llvm.org/show_bug.cgi?id=42307">42307</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[mca] Multiple reservation station handling
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-mca
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lebedev.ri@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>andrea.dibiagio@gmail.com, llvm-bugs@lists.llvm.org, matthew.davis@sony.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22119" name="attach_22119" title="X86ScheduleBarcelona.td">attachment 22119</a> <a href="attachment.cgi?id=22119&action=edit" title="X86ScheduleBarcelona.td">[details]</a></span>
X86ScheduleBarcelona.td

Currently llvm-mca *seems* to only handle the case when there
is a single reservation station for a number of execution pipes.

That is more or less isn't the case for for -mcpu=amdfam10h
References:
* AMD Software Optimization Guide for AMD Family 10h and 12h Processors
  <a href="https://support.amd.com/TechDocs/40546.pdf">https://support.amd.com/TechDocs/40546.pdf</a>
  Appendix A Microarchitecture of AMD Family 10h and 12h Processors
* <a href="https://www.realworldtech.com/barcelona/">https://www.realworldtech.com/barcelona/</a> 
* I think this is more or less stated as such in Agner, but not specifically

Bach of 6 pipes (3 integer, 3 fp) has it's own scheduler with it's own
reservation station.
But as you can see from test/tools/llvm-mca/X86/scheduler-queue-usage.s
it seems, MCA only currently recognizes this:

def BnInt : ProcResGroup<[BnInt0, BnInt1, BnInt2]> {
  let BufferSize = 24;
}

^ only BnInt queue ever is being used.

A simple 
  def BnI0 : ProcResGroup<[BnInt0]> {
    let BufferSize = 24;
  }

isn't recognized, neither is

  def BnInt0 : ProcResource<1> {
    let BufferSize = 8;
  }

Am i missing something truly obvious here?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>