<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:chandlerc@gmail.com" title="Chandler Carruth &lt;chandlerc&#64;gmail.com&gt;"> <span class="fn">Chandler Carruth</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed" title="RESOLVED INVALID - bad generated code for conditionals connected by (&amp;)" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23827&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=8GDX6uGdqPz9sEIvMjsEC8X0_5ri5SCbH7Rmaa4HzY8&s=mZSm_p8CeYRnPhYq3mG4is1ZZMSgkn3Y2wncngGw2tg&e=">bug 23827</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>chandlerc@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed" title="RESOLVED INVALID - bad generated code for conditionals connected by (&amp;)" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23827-23c4&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=8GDX6uGdqPz9sEIvMjsEC8X0_5ri5SCbH7Rmaa4HzY8&s=RqCsq8xNikdyY8sT6UFncvFKCi1OUR-Q52XL4HRSNXg&e=">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed" title="RESOLVED INVALID - bad generated code for conditionals connected by (&amp;)" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23827&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=8GDX6uGdqPz9sEIvMjsEC8X0_5ri5SCbH7Rmaa4HzY8&s=mZSm_p8CeYRnPhYq3mG4is1ZZMSgkn3Y2wncngGw2tg&e=">bug 23827</a>
              from <span class="vcard"><a class="email" href="mailto:chandlerc@gmail.com" title="Chandler Carruth &lt;chandlerc&#64;gmail.com&gt;"> <span class="fn">Chandler Carruth</span></a>
</span></b>
        <pre>Fisnik, on what processor and with what benchmark do you measure the problem
with 'amp's generated code? Why is the branch misprediction penalty very high
there? I don't really understand that at all.

Fundamentally, I disbelieve that these should ever be compiled differently.
They are identical code sequences functionally, and we should generate an
identical sequence of instructions.


Also, note that all versions of GCC also generate two jumps in both test cases.
ICC is the only one that generates different code, and the code sequence it
generates for 'amp' seems absurdly worse than what Clang and GCC do for both
test cases and what ICC itself odes for 'ampamp'.


Finally, do note that with Clang's output you have prolog/epilog idiocy in the
code that has nothing to do with the testcase. AFAICT, other than that
silliness, Clang, GCC, and ICC for 'ampamp' all agree, and I think that code is
the best code.


Please re-open with measurements and details about what you think is going
wrong here if there is an actual performance problem.</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>