<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 - [llvm-mca] Add the ability to mark section(s) of code for analysis"
   href="https://bugs.llvm.org/show_bug.cgi?id=36875">36875</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[llvm-mca] Add the ability to mark section(s) of code for analysis
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>andrea.dibiagio@gmail.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>llvm-dev@redking.me.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>atrick@apple.com, clement.courbet@gmail.com, craig.topper@gmail.com, greg.bedwell@sony.com, hfinkel@anl.gov, llvm-bugs@lists.llvm.org, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Currently llvm-mca will analyse all the asm data in an input file, this often
means that it can be tricky to get analysis for a hot loop section of code
without all the prologue/epilogue/branches/return code getting in the way.

What would be ideal is if we had a way to mark the section(s) of code that we
actually want an analysis for - in raw asm this will require
comments/directives of some sort.

What would be even better would be is if we could provide these markers in
C++/IR code to make it easy to pipe the asm directly into llvm-mca, this would
be similar to IACA's IACA_START/IACA_END macros but without inserting any code
into the final object file.

Not sure if we might have to treat these marker as some sort of barrier so it
might affect the ordering of instructions?

I don't know the best way to handle multiple sections - outputting one section
after another obviously, I don't think we need any 'multi section' summary -
but we might need an user friendly way in the marker to distinguish between
sections (or maybe loc is enough)?.

Yet another thing that might be of use is if there is a way that we could
include this in debug/DWARF data to help with comparing static analysis vs
profiling.</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>