<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/62485>62485</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Increase in the build time / compile time of the SPECCPU2017 / 623.xalancbmk_s 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          r-swamy
      </td>
    </tr>
</table>

<pre>
    <html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=ProgId content=OneNote.File>
<meta name=Generator content="Microsoft OneNote 15">
</head>

<body lang=en-US style='font-family:Calibri;font-size:11.0pt'>
<!--StartFragment-->

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'>Symptoms :</p>

<ul type=disc style='direction:ltr;unicode-bidi:embed;margin-top:0in;
 margin-bottom:0in'>
 <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
     style='font-family:Calibri;font-size:11.0pt'>There is an increased in the
     build time / compilation time between llvm 14 Vs llvm 16 Vs latest
     community llvm checkout ( llvm 17 )</span></li>
 <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
     style='font-family:Calibri;font-size:11.0pt'>Target llvm source used,</span></li>
 <ul type=circle style='direction:ltr;unicode-bidi:embed;margin-top:0in;
  margin-bottom:0in'>
  <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
      style='font-family:Calibri;font-size:11.0pt'>Llvm 14</span></li>
  <ul type=disc style='direction:ltr;unicode-bidi:embed;margin-top:0in;
   margin-bottom:0in'>
   <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><a
       href="https://github.com/llvm/llvm-project/tree/llvmorg-14.0.6"><span
       style='font-family:Calibri;font-size:11.0pt'>https://github.com/llvm/llvm-project/tree/llvmorg-14.0.6</span></a></li>
  </ul>
  <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
      style='font-family:Calibri;font-size:11.0pt'>Llvm 16</span></li>
  <ul type=disc style='direction:ltr;unicode-bidi:embed;margin-top:0in;
   margin-bottom:0in'>
   <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><a
       href="https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-16.0.2.tar.gz"><span
       style='font-family:Calibri;font-size:11.0pt'>https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-16.0.2.tar.gz</span></a></li>
  </ul>
  <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
      style='font-family:Calibri;font-size:11.0pt'>Llvm 17</span></li>
  <ul type=disc style='direction:ltr;unicode-bidi:embed;margin-top:0in;
   margin-bottom:0in'>
   <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><a
       href="https://github.com/llvm/llvm-project"><span style='font-family:
       Calibri;font-size:11.0pt'>https://github.com/llvm/llvm-project</span></a></li>
  </ul>
 </ul>
</ul>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'>&nbsp;</p>

<ul type=disc style='direction:ltr;unicode-bidi:embed;margin-top:0in;
 margin-bottom:0in'>
 <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
     style='font-family:Calibri;font-size:11.0pt'>The compiler flag set 1,</span></li>
 <ul type=circle style='direction:ltr;unicode-bidi:embed;margin-top:0in;
  margin-bottom:0in'>
  <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
      style='font-family:Calibri;font-size:11.0pt'>Compile flags :
      default=base:</span></li>
 </ul>
</ul>

<p style='margin:0in;margin-left:1.125in;font-family:Calibri;font-size:11.0pt'>COPTIMIZE<span
style='mso-spacerun:yes'>        </span>= -O3<span style='mso-spacerun:yes'>  
</span></p>

<p style='margin:0in;margin-left:1.125in;font-family:Calibri;font-size:11.0pt'>CXXOPTIMIZE<span
style='mso-spacerun:yes'>   </span>= -O3<span style='mso-spacerun:yes'>  
</span></p>

<ul type=disc style='direction:ltr;unicode-bidi:embed;margin-top:0in;
 margin-bottom:0in'>
 <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
     style='font-family:Calibri;font-size:11.0pt'>The compiler flag set 2,</span></li>
 <ul type=circle style='direction:ltr;unicode-bidi:embed;margin-top:0in;
  margin-bottom:0in'>
  <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
      style='font-family:Calibri;font-size:11.0pt'>Compile flags :
      default=base:</span></li>
 </ul>
</ul>

<p style='margin:0in;margin-left:1.125in;font-family:Calibri;font-size:11.0pt'>COPTIMIZE<span
style='mso-spacerun:yes'>        </span>= -O3<span style='mso-spacerun:yes'>  
</span>-flto -fuse-ld=lld</p>

<p style='margin:0in;margin-left:1.125in;font-family:Calibri;font-size:11.0pt'>CXXOPTIMIZE<span
style='mso-spacerun:yes'>   </span>= -O3<span style='mso-spacerun:yes'>  
</span>-flto -fuse-ld=lld</p>

<p style='margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt'>&nbsp;</p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'>&nbsp;</p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'><span
style='font-weight:bold'>Build Time comparison<span style='mso-spacerun:yes'> 
</span>of flag set 1 SPECCPU2017 / 623.xalancbmk_s :</span></p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'><span
style='font-weight:bold'>Compile flags : default=base:</span></p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'><span
style='font-weight:bold'><span style='mso-spacerun:yes'>   
</span>COPTIMIZE<span style='mso-spacerun:yes'>        </span>= -O3</span></p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'><span
style='font-weight:bold'><span style='mso-spacerun:yes'>   
</span>CXXOPTIMIZE<span style='mso-spacerun:yes'>   </span>= -O3</span></p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'>&nbsp;</p>

<div style='direction:ltr'>



llvm-14 | llvm-16 | llvm-17 | 14 Vs 16    (Time Sec) | 14 Vs 16   (%) | 14 Vs 17   (Time Sec) | 14 Vs 17   (%)
-- | -- | -- | -- | -- | -- | --
364.881 | 480.925 | 461.203 | 116.044 | 24.13 | 96.32 | 20.88
$   clang --version   clang   version 14.0.0   Target:   x86_64-unknown-linux-gnu   Thread   model: posix | $   clang --version   clang   version 16.0.0   Target:   x86_64-unknown-linux-gnu   Thread   model: posix | $   clang --version   clang   version 17.0.0 (https://github.com/llvm/llvm-project.git   5c9629a714203276c9662313b5b86c0330a6a1b4)   Target:   x86_64-unknown-linux-gnu   Thread   model: posix |   |   |   |  



</div>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'>&nbsp;</p>

<!--EndFragment-->
</body>

</html>


<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=ProgId content=OneNote.File>
<meta name=Generator content="Microsoft OneNote 15">
</head>

<body lang=en-US style='font-family:Calibri;font-size:11.0pt'>
<!--StartFragment-->

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'><span
style='font-weight:bold'>Build Time comparison<span style='mso-spacerun:yes'> 
</span>of flag set 2 SPECCPU2017 / 623.xalancbmk_s :</span></p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'><span
style='font-weight:bold'>Compile flags : default=base:</span></p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'><span
style='font-weight:bold'><span style='mso-spacerun:yes'>   
</span>COPTIMIZE<span style='mso-spacerun:yes'>        </span>= -O3<span
style='mso-spacerun:yes'>   </span>-flto -fuse-ld=lld</span></p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'><span
style='font-weight:bold'><span style='mso-spacerun:yes'>   
</span>CXXOPTIMIZE<span style='mso-spacerun:yes'>   </span>= -O3<span
style='mso-spacerun:yes'>   </span>-flto -fuse-ld=lld</span></p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'>&nbsp;</p>

<div style='direction:ltr'>



llvm-14 | llvm-16 | llvm-17 | 14 Vs 16    (Time Sec) | 14 Vs 16   (%) | 14 Vs 17   (Time Sec) | 14 Vs 17   (%)
-- | -- | -- | -- | -- | -- | --
417.263 | 502.503 | 484.455 | 85.24 | 16.96 | 67.19 | 13.87
$   clang --version   clang   version 14.0.0   Target:   x86_64-unknown-linux-gnu   Thread   model: posix | $   clang --version   clang   version 16.0.0   Target:   x86_64-unknown-linux-gnu   Thread   model: posix | $   clang --version   clang   version 17.0.0 (https://github.com/llvm/llvm-project.git   5c9629a714203276c9662313b5b86c0330a6a1b4)   Target:   x86_64-unknown-linux-gnu   Thread   model: posix |   |   |   |  



</div>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'>&nbsp;</p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'>&nbsp;</p>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'>As per above data
point, </p>

<ul type=disc style='direction:ltr;unicode-bidi:embed;margin-top:0in;
 margin-bottom:0in'>
 <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
     style='font-family:Calibri;font-size:11.0pt'>For Flagset 1 ( -O3 ), there
     is an<span style='mso-spacerun:yes'>  </span></span></li>
 <ul type=circle style='direction:ltr;unicode-bidi:embed;margin-top:0in;
  margin-bottom:0in'>
  <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
      style='font-family:Calibri;font-size:11.0pt'>Llvm 14 vs llvm 16 has ~24%
      build time overhead</span></li>
  <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
      style='font-family:Calibri;font-size:11.0pt'>Llvm 14 vs llvm 17 has ~20%
      build time overhead</span></li>
 </ul>
</ul>

<p style='margin:0in;font-family:Calibri;font-size:11.0pt'><span
style='mso-spacerun:yes'>    </span></p>

<ul type=disc style='direction:ltr;unicode-bidi:embed;margin-top:0in;
 margin-bottom:0in'>
 <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
     style='font-family:Calibri;font-size:11.0pt'>For Flagset 2 ( </span><span
     style='font-weight:bold;font-family:Calibri;font-size:11.0pt'>-O3<span
     style='mso-spacerun:yes'>   </span>-flto -fuse-ld=lld</span><span
     style='font-family:Calibri;font-size:11.0pt'> ), there is an<span
     style='mso-spacerun:yes'>  </span></span></li>
 <ul type=circle style='direction:ltr;unicode-bidi:embed;margin-top:0in;
  margin-bottom:0in'>
  <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
      style='font-family:Calibri;font-size:11.0pt'>Llvm 14 vs llvm 16 has ~16%
      build time overhead</span></li>
  <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span
      style='font-family:Calibri;font-size:11.0pt'>Llvm 14 vs llvm 17 has ~14%
      build time overhead</span></li>
 </ul>
</ul>

<!--EndFragment-->
</body>

</html>

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsW1-PmzoW_zTOiwUCGwx5yEMmKatKe7fVbe_qal-uDDjgrcGRbZLJfdjPvjIwHZLMNJNJpjNtyQOxjO3j8zvH549tqNa8qBmbgfAGhMsJbUwp1Uw5ekur3SSV-W4G8KI0lYC3lag1wHMJ8BIg1Kga4LnOSlZR7VQ8U1LLlXEyWdlGqxXP2H0BIeAtgTe_GyQ3_SgNzwGeL1AS-J7vOSS8wY7v574zR9PE8bz53PMWfhDH6HAM2700Zg3wHKAEoGS73bpb7EpVAJR8_h2g5Pd3C8fOPfBsZ_yu698_8aJkND-urZihsKYVA3j5UcnifQ4zWRtW2yl_qNm_pGFuwgW777rf6R-sZooaqQb9AEK_3UEE-0GgH-5NCy8ASh6ekxUEFLQuAF6y2vnjE9RmZ2ewBChaydo4K1pxsbNQUsFTxQG-aes1_9uKwfddb20AivbJ-Y7zyVBlEkWLitXGcY5pr4e0KqoKbgXv2efNuaQ_7aq1kZWGVmgtv-tjgo2AZre2BHOusyH1nCuWGS7tBIRRAN80Nc9kzpyU5xzgOatSlgN8003TMXL9dard8LB_k0pjWkW1LweoQIAXgh9zfDfU_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