<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Add -mskip-rax-setup option for x86-64"
   href="https://llvm.org/bugs/show_bug.cgi?id=23258">23258</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add -mskip-rax-setup option for x86-64
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hjl.tools@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, michael.m.kuperstein@intel.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>GCC 5 added a compiler option, -mskip-rax-setup, for x86-64.  It skips
setting up the RAX register when SSE is disabled and there are no
variable arguments passed in vector registers.  Since kernel doesn't
pass vector registers to functions with variable arguments, this option
can be used to optimize the x86-64 kernel.  For kernel 3.17:

    text   data    bss    dec      hex   filename
11455921 2204048 5853184 19513153 129bf41 vmlinux #with -mskip-rax-setup
11480079 2204048 5853184 19537311 12a1d9f vmlinux

It will be nice to implement it in clang.</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>