<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:andrey.churbanov@intel.com" title="Andrey Churbanov <andrey.churbanov@intel.com>"> <span class="fn">Andrey Churbanov</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Imrove perfromance when user sets same number of threads"
   href="https://bugs.llvm.org/show_bug.cgi?id=39137">bug 39137</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;">Fixed By Commit(s)</td>
           <td>
                
           </td>
           <td>r346862
           </td>
         </tr>

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

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Imrove perfromance when user sets same number of threads"
   href="https://bugs.llvm.org/show_bug.cgi?id=39137#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Imrove perfromance when user sets same number of threads"
   href="https://bugs.llvm.org/show_bug.cgi?id=39137">bug 39137</a>
              from <span class="vcard"><a class="email" href="mailto:andrey.churbanov@intel.com" title="Andrey Churbanov <andrey.churbanov@intel.com>"> <span class="fn">Andrey Churbanov</span></a>
</span></b>
        <pre>The function omp_set_num_threads() fixed to not write into internal structure
if requested number of threads is the same as the value of internal control
variable (ICV).

With num_threads() clause things are more complicated, because the write here
is cheaper and this write eliminates the need to read ICV twice - here and in
the following __kmp_fork_call. Attempt to avoid write op here caused some
performance regressions in our testing, so I'd prefer to leave the clause
implementation intact.</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>