<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Missed optimization: stack frame pushing/popping is not optimized away for trivial functions"
   href="https://llvm.org/bugs/show_bug.cgi?id=26160">bug 26160</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>rnk@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WORKSFORME
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Missed optimization: stack frame pushing/popping is not optimized away for trivial functions"
   href="https://llvm.org/bugs/show_bug.cgi?id=26160#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Missed optimization: stack frame pushing/popping is not optimized away for trivial functions"
   href="https://llvm.org/bugs/show_bug.cgi?id=26160">bug 26160</a>
              from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
        <pre>Add -fomit-frame-pointer to get this behavior:

$ clang --target=x86_64-darwin -fomit-frame-pointer -O2 t.c  -S -o -
        .section        __TEXT,__text,regular,pure_instructions
        .macosx_version_min 10, 4
        .globl  _bar
        .align  4, 0x90
_bar:                                   ## @bar
        .cfi_startproc
## BB#0:                                ## %entry
        movl    %edi, %eax
        retq
        .cfi_endproc

Darwin defaults to -fno-omit-frame-pointer because Apple has decided that they
want it to.</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>