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

    <tr>
        <th>Summary</th>
        <td>
             The significant gap in compilation speed between clang and gcc for ORCJIT.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          Thrrreeee
      </td>
    </tr>
</table>

<pre>
    During my study of ORC JIT, it was inevitable to compile the official provided examples. While compiling these examples, I noticed that clang's compilation speed was significantly slower compared to gcc, which was considerably faster. To analyze this, I scripted a shell program to measure the compilation time of the same file using both compilers. Through multiple experiments and comparisons, I found that gcc's compilation speed was approximately twenty times faster than clang's for the same file. Result as following:
![image](https://github.com/llvm/llvm-project/assets/72311224/3b1838f8-fd8e-48c3-bb31-9d38e580d506)
>From a normal perspective, such a significant difference in compilation time between clang and gcc shouldn't occur. However, I'm currently unable to comprehend the reason behind this vast gap. Moreover, I've observed that when building the LLVM project, using gcc results in a much faster compilation speed compared to clang.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVM2O2zYQfhr6MrAgUXYkHXRIdmF0gwQBFkZ7psiRyIIiBQ5px336grI2cbvtIScb_Pn0_Q0FkZkcYs-On9jxeSdS1D70Zx1CQETcDV7d-ucUjJtgvgHFpG7gR_j2-gSfX86MP4GJcBUExuHFRDFYhOhB-nkx-a9G8ONopBEWluAvRqEC_C7mxSIV8IfOp-6n8zeiRsIf-xn-BZyPRqKCqEUEaYWbGG9ouySi8Q5oQVQrjazHjEYKF-0NyPorhvWoCBnCwyRlhr1qI_V6Q3pHRmEQg73BKChiKODsQThhb39lCWYjQjKYJaICAaTRroKmIOYMO6OgFO6CH5lFM2cH1nUSM8KYBSfKYgcf9ZtTgQo46-DTpGFONprFZh8WDGZGFwmEU5sOQ95tjEaf3GbMqut_bRHLEvx3M4uI9gbxii7eVm60Sc4g7sHd0Yd_ci7gFSnZCCJvWuuvxk2s_sjKZ1Z-ZLxix09mFhOy4zPjrY5xobzNT4yfJhN1GgrpZ8ZP1l7efvZL8H-ijIyfBBFGYvzU8LqqOD8wfqqHqq3bsd2PqsX9oZX1fhjqat-pusVjW6pj-YHx7k7hFPwMApwPc-4aBlpQRnPBbBUlqXNsP9sByowjBnQSwbj3mQ0Yr4ibJav7k5RA2ierHONNBC9lCgX85q94wbAGwngzg0wh4Fq_5B7nIaDGNS2EgIK8gwG1WVcMwUVQhEksBXz1Af0D4gXBD4Th8jYDV40OhmSs2kYGvnz5_Sv88PJp61cmHNbQ8niCgDm7sOX9viePU7KqLu7G7lRfq67uxA77qimr-nBoON_pXh46fsS6adtmLEc81KrqZDmI6gM2fOjqnel5mdOsy6o6HDkvsEVRlm0ru6rhslXsUOIsjC1yGQofpp0hStg3dcePOysGtLS-TZxv1eT5mQr9Wp4hTcQOpTUU6SdCNNFiD-dc3oe4J7H8O-e77P8OOvf_2-vT55dzsUvB9r_c51XI2ues5e8AAAD__5ls3Qk">